|
@@ -241,6 +241,8 @@ async def celCallback(mngr: Manager, msg: Message):
|
|
|
_cb = {'users': list(app.cache['cel_calls'][uid]['current_channels'].keys()),
|
|
_cb = {'users': list(app.cache['cel_calls'][uid]['current_channels'].keys()),
|
|
|
'state': 'group_ringing',
|
|
'state': 'group_ringing',
|
|
|
'callId': uid}
|
|
'callId': uid}
|
|
|
|
|
+ if ('WebCallId' in app.cache['cel_calls'][msg.linkedid]):
|
|
|
|
|
+ _cb['WebCallId'] = app.cache['cel_calls'][msg.linkedid]['WebCallId']
|
|
|
reply = await doCallback('groupRinging', _cb)
|
|
reply = await doCallback('groupRinging', _cb)
|
|
|
if ((msg.EventName == 'ANSWER') and
|
|
if ((msg.EventName == 'ANSWER') and
|
|
|
(msg.Application == 'AppDial') and
|
|
(msg.Application == 'AppDial') and
|
|
@@ -252,6 +254,8 @@ async def celCallback(mngr: Manager, msg: Message):
|
|
|
'users': list(app.cache['cel_calls'][uid]['all_channels'].keys()),
|
|
'users': list(app.cache['cel_calls'][uid]['all_channels'].keys()),
|
|
|
'state': 'group_answer',
|
|
'state': 'group_answer',
|
|
|
'callId': uid}
|
|
'callId': uid}
|
|
|
|
|
+ if ('WebCallId' in app.cache['cel_calls'][msg.linkedid]):
|
|
|
|
|
+ _cb['WebCallId'] = app.cache['cel_calls'][msg.linkedid]['WebCallId']
|
|
|
reply = await doCallback('groupAnswered', _cb)
|
|
reply = await doCallback('groupAnswered', _cb)
|
|
|
if ((msg.Application == 'Queue') and
|
|
if ((msg.Application == 'Queue') and
|
|
|
(firstMessage.Context == 'from-pstn')):
|
|
(firstMessage.Context == 'from-pstn')):
|