zhoufan 9 meses atrás
pai
commit
1c89b0f725

+ 19 - 0
midware-service/src/main/java/midware/service/eslclient/EslEventListenerEvent.java

99
                             session.setActionId(session.getActionId() + 1);
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
                         if (chan == null) {
121
                         if (chan == null) {
103
                             chan = EslCommon.addChanel(chanNames[2]);
122
                             chan = EslCommon.addChanel(chanNames[2]);
104
                             chan.setType(2);
123
                             chan.setType(2);