|
@@ -226,8 +226,8 @@ async def celCallback(mngr: Manager, msg: Message):
|
|
|
uid = firstMessage.LinkedID
|
|
uid = firstMessage.LinkedID
|
|
|
if ((msg.Application == 'Queue') and
|
|
if ((msg.Application == 'Queue') and
|
|
|
(msg.EventName == 'APP_START') and
|
|
(msg.EventName == 'APP_START') and
|
|
|
- (firstMessage.Context == 'from-internal')) and
|
|
|
|
|
- (cid is not None) and (len(cid) < 7):
|
|
|
|
|
|
|
+ (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]['groupCall'] = True
|
|
|
if ((msg.Application == 'Queue') and
|
|
if ((msg.Application == 'Queue') and
|
|
|
(msg.EventName == 'APP_END') and
|
|
(msg.EventName == 'APP_END') and
|
|
@@ -261,7 +261,7 @@ async def celCallback(mngr: Manager, msg: Message):
|
|
|
#called = msg.Exten
|
|
#called = msg.Exten
|
|
|
app.cache['cel_calls'][lid]['answered'] = True
|
|
app.cache['cel_calls'][lid]['answered'] = True
|
|
|
_cb = {'user': called,
|
|
_cb = {'user': called,
|
|
|
- 'users': list(app.cache['cel_calls'][uid]['all_channels'].keys()),
|
|
|
|
|
|
|
+ 'users': list(app.cache['cel_calls'][uid]['all_channels'].values()),
|
|
|
'state': 'group_answer',
|
|
'state': 'group_answer',
|
|
|
'callerId': cid,
|
|
'callerId': cid,
|
|
|
'callId': uid}
|
|
'callId': uid}
|