|
|
@@ -99,6 +99,25 @@ public class EslEventListenerEvent implements IEslEventListener {
|
|
99
|
99
|
session.setActionId(session.getActionId() + 1);
|
|
100
|
100
|
}
|
|
101
|
101
|
|
|
|
102
|
+ //上通电话异常时的处理
|
|
|
103
|
+ if (chan != null && StringHelper.isNotEmpty(chan.getChanId())) {
|
|
|
104
|
+ if (chan.getType() == 2) {
|
|
|
105
|
+ //外线移除通道
|
|
|
106
|
+ EslCommon.channels.remove(chan);
|
|
|
107
|
+ } else {
|
|
|
108
|
+ //内线重置通道
|
|
|
109
|
+ chan.setAnswer(false);
|
|
|
110
|
+ chan.setChanId("");
|
|
|
111
|
+ chan.setRecordPath("");
|
|
|
112
|
+ chan.setCallType(0);
|
|
|
113
|
+ chan.setSessionId("");
|
|
|
114
|
+ chan.setRecordId(0);
|
|
|
115
|
+ chan.setRingTime(null);
|
|
|
116
|
+ chan.setSessionSort(0);
|
|
|
117
|
+ chan.setOpType("");
|
|
|
118
|
+ }
|
|
|
119
|
+ }
|
|
|
120
|
+
|
|
102
|
121
|
if (chan == null) {
|
|
103
|
122
|
chan = EslCommon.addChanel(chanNames[2]);
|
|
104
|
123
|
chan.setType(2);
|