|
|
@@ -78,8 +78,12 @@ public class EslEventListenerEvent implements IEslEventListener {
|
|
78
|
78
|
String codec = header.get("variable_ep_codec_string");
|
|
79
|
79
|
boolean isVideo = StringHelper.isNotEmpty(codec) && codec.contains("H264");
|
|
80
|
80
|
|
|
81
|
|
- Channel chan = EslCommon.getChanByNumber(chanNames[2]);
|
|
82
|
|
- Agent agent = EslCommon.getAgentByExten(chanNames[2]);
|
|
|
81
|
+ Agent agent = null;
|
|
|
82
|
+ Channel chan = EslCommon.getChanById(chanId);
|
|
|
83
|
+ if(EslCommon.existExten(chanNames[2])) {
|
|
|
84
|
+ if (chan == null) chan = EslCommon.getChanByNumber(chanNames[2]);
|
|
|
85
|
+ agent = EslCommon.getAgentByExten(chanNames[2]);
|
|
|
86
|
+ }
|
|
83
|
87
|
Session session = EslCommon.getSessionById(callId);
|
|
84
|
88
|
if (callType == 0) callType = EslCommon.existExten(callerNum) ? 2 : 1;
|
|
85
|
89
|
|