Explorar o código

fix ringing callback

Hal De %!s(int64=3) %!d(string=hai) anos
pai
achega
4fcebc486f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/app.py

+ 2 - 2
app/app.py

@@ -212,7 +212,7 @@ async def newchannelCallback(mngr: Manager, msg: Message):
 
 @manager.register_event('CEL')
 async def celCallback(mngr: Manager, msg: Message):
-  app.logger.warning('CEL {}'.format(msg))
+  #app.logger.warning('CEL {}'.format(msg))
   lid = msg.LinkedID
   if ((msg.EventName == 'CHAN_START') and (lid == msg.UniqueID)):    #save first msg
     app.cache['cel_calls'][lid] = msg
@@ -238,7 +238,7 @@ async def celCallback(mngr: Manager, msg: Message):
              'callId': uid} 
            if ('WebCallId' in app.cache['cel_calls'][msg.linkedid]):
              _cb['WebCallId'] = app.cache['cel_calls'][msg.linkedid]['WebCallId']
-           reply = await doCallback('device', _cb)
+           reply = await doCallback(device, _cb)
     if ((msg.Application == 'Queue') and
         (msg.EventName == 'APP_START') and 
         (firstMessage.Context == 'from-internal') and