Hal De 3 rokov pred
rodič
commit
f127a322a1
1 zmenil súbory, kde vykonal 8 pridanie a 1 odobranie
  1. 8 1
      app/app.py

+ 8 - 1
app/app.py

@@ -231,8 +231,15 @@ async def celCallback(mngr: Manager, msg: Message):
       app.cache['cel_calls'][lid]['groupCall'] = True
     if ((msg.Application == 'Queue') and
         (msg.EventName == 'APP_END') and 
-        (firstMessage.Context == 'from-internal')):
+        (firstMessage.get('groupCall',False))):
       app.cache['cel_calls'][lid]['groupCall'] = False
+      _cb = {'users': list(app.cache['cel_calls'][uid]['current_channels'].values()),
+                 'state': 'group_ringing',
+                 'callerId': cid,
+                 '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)
     if (firstMessage.get('groupCall',False)):                         #for local calls only
       if msg.Channel.startswith('PJSIP/'):
         called = msg.CallerIDnum