Explorar o código

channel callback

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

+ 4 - 0
app/app.py

@@ -163,6 +163,10 @@ async def presenceStatusCallback(mngr: Manager, msg: Message):
     if combinedState != prevState:
       await userStateChangeCallback(user, combinedState, prevState)
 
+@manager.register_event('Newstate')
+async def newstateCallback(mngr: Manager, msg: Message):
+  app.logger.warning(pformat(msg))
+
 async def getCDR(start=None,
                  end=None,
                  table='cdr',