Browse Source

callback template implementaion

Hal De 4 năm trước cách đây
mục cha
commit
306143b076
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      app/app.py

+ 2 - 1
app/app.py

@@ -144,6 +144,7 @@ async def reloadCallback(mngr: Manager, msg: Message):
 async def extensionStatusCallback(mngr: Manager, msg: Message):
   user = msg.exten
   state = msg.statustext.lower()
+  app.logger.warning('ExtensionStatus({}, {})'.format(user, state))
   if user in app.cache['ustates']:
     prevState = getUserStateCombined(user)
     app.cache['ustates'][user] = state
@@ -296,8 +297,8 @@ async def amiPJSIPShowAuths():
     abort(401)
   return successReply(app.cache['devices'])
 
-@authRequired
 @app.route('/ami/aors')
+@authRequired
 async def amiPJSIPShowAors():
   if not request.admin:
     abort(401)