Ver código fonte

channel callback

Hal De 4 anos atrás
pai
commit
6dadf7d9be
1 arquivos alterados com 4 adições e 0 exclusões
  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',