|
|
@@ -265,6 +265,7 @@ async def celCallback(mngr: Manager, msg: Message):
|
|
|
'state': 'ringing',
|
|
|
'callerId': cid,
|
|
|
'did': did,
|
|
|
+ 'queue': app.cache['cel_calls'][lid]['queueName'],
|
|
|
'callId': uid}
|
|
|
if ('WebCallId' in app.cache['cel_calls'][msg.linkedid]):
|
|
|
_cb['WebCallId'] = app.cache['cel_calls'][msg.linkedid]['WebCallId']
|
|
|
@@ -276,10 +277,12 @@ async def celCallback(mngr: Manager, msg: Message):
|
|
|
(firstMessage.Context == 'from-internal') and
|
|
|
(cid is not None) and (len(cid) < 7)):
|
|
|
app.cache['cel_calls'][lid]['groupCall'] = True
|
|
|
+ app.cache['cel_calls'][lid]['queueName'] = msg.Exten
|
|
|
if ((msg.Application == 'Queue') and
|
|
|
(msg.EventName == 'APP_END') and
|
|
|
(firstMessage.get('groupCall',False))):
|
|
|
app.cache['cel_calls'][lid]['groupCall'] = False
|
|
|
+ app.cache['cel_calls'][lid]['queueName'] = False
|
|
|
if (firstMessage.get('groupCall',False)): #for local calls only
|
|
|
if msg.Channel.startswith('PJSIP/'):
|
|
|
called = msg.CallerIDnum
|