Hal De před 3 roky
rodič
revize
2c7204eb2f
1 změnil soubory, kde provedl 8 přidání a 0 odebrání
  1. 8 0
      app/app.py

+ 8 - 0
app/app.py

@@ -224,6 +224,8 @@ async def newchannelCallback(mngr: Manager, msg: Message):
         _cb['WebCallId'] = app.cache['cel_calls'][msg.linkedid]['WebCallId']
       if (msg.linkedid in  app.cache['cel_calls']) and ('CallerNumber' in app.cache['cel_calls'][msg.linkedid]):
         _cb['CallerNumber'] = app.cache['cel_calls'][msg.linkedid]['CallerNumber']
+      if (msg.linkedid in  app.cache['cel_calls']) and ('BNumber' in app.cache['cel_calls'][msg.linkedid]):
+        _cb['BNumber'] = app.cache['cel_calls'][msg.linkedid]['BNumber']
       #reply = await doCallback(device, _cb)
 
 @manager.register_event('CEL')
@@ -289,6 +291,8 @@ async def celCallback(mngr: Manager, msg: Message):
              _cb['WebCallId'] = app.cache['cel_calls'][msg.linkedid]['WebCallId']
            if ('CallerNumber' in app.cache['cel_calls'][msg.linkedid]):
              _cb['CallerNumber'] = app.cache['cel_calls'][msg.linkedid]['CallerNumber']
+           if ('BNumber' in app.cache['cel_calls'][msg.linkedid]):
+             _cb['BNumber'] = app.cache['cel_calls'][msg.linkedid]['BNumber']
            reply = await doCallback(device, _cb)
     if ((msg.Application == 'Queue') and
         (msg.EventName == 'APP_START') and 
@@ -328,6 +332,8 @@ async def celCallback(mngr: Manager, msg: Message):
               _cb['WebCallId'] = app.cache['cel_calls'][msg.linkedid]['WebCallId']
           if ('CallerNumber' in app.cache['cel_calls'][msg.linkedid]):
              _cb['CallerNumber'] = app.cache['cel_calls'][msg.linkedid]['CallerNumber']
+          if ('BNumber' in app.cache['cel_calls'][msg.linkedid]):
+             _cb['BNumber'] = app.cache['cel_calls'][msg.linkedid]['BNumber']
           reply = await doCallback('groupRinging', _cb)
         if ((msg.EventName == 'ANSWER') and
           (msg.Application == 'AppDial') and
@@ -343,6 +349,8 @@ async def celCallback(mngr: Manager, msg: Message):
             _cb['WebCallId'] = app.cache['cel_calls'][msg.linkedid]['WebCallId']
           if ('CallerNumber' in app.cache['cel_calls'][msg.linkedid]):
              _cb['CallerNumber'] = app.cache['cel_calls'][msg.linkedid]['CallerNumber']
+          if ('BNumber' in app.cache['cel_calls'][msg.linkedid]):
+             _cb['BNumber'] = app.cache['cel_calls'][msg.linkedid]['BNumber']
           reply = await doCallback('groupAnswered', _cb)
           
     if ((msg.Application == 'Queue') and