Hal De 3 ani în urmă
părinte
comite
c109526ee3
1 a modificat fișierele cu 5 adăugiri și 5 ștergeri
  1. 5 5
      app/app.py

+ 5 - 5
app/app.py

@@ -262,7 +262,7 @@ async def celCallback(mngr: Manager, msg: Message):
         if (msg.Application == 'Queue') and (msg.Exten in ('1','2200')):
            queue_changed=False;
            if (msg.EventName == 'APP_START'):
-                app.cache['cel_queue_calls'][msg.LinkedID] = {'caller': msg.CallerIDnum, 'start': msg.EventTime}; 
+                app.cache['cel_queue_calls'][msg.LinkedID] = {'caller': msg.CallerIDnum, 'start': msg.EventTime};
                 queue_changed = 1;
            if (msg.EventName == 'APP_END'):
                 call = app.cache['cel_queue_calls'].pop(msg.LinkedID,False);
@@ -1257,7 +1257,7 @@ class GroupRingingCallback(Resource):
   @app.param('url', 'used to set the Callback url for the group ringing callback', 'query')
   @app.response(HTTPStatus.OK, 'JSON data {"url":url}')
   @app.response(HTTPStatus.UNAUTHORIZED, 'Authorization required')
-  async def get(self, device):
+  async def get(self):
     '''Returns and sets groupRinging callback url.
     '''
     if not request.admin:
@@ -1279,7 +1279,7 @@ class GroupAnsweredCallback(Resource):
   @app.param('url', 'used to set the Callback url for the group answered callback', 'query')
   @app.response(HTTPStatus.OK, 'JSON data {"url":url}')
   @app.response(HTTPStatus.UNAUTHORIZED, 'Authorization required')
-  async def get(self, device):
+  async def get(self):
     '''Returns and sets groupAnswered callback url.
     '''
     if not request.admin:
@@ -1301,7 +1301,7 @@ class QueueEnterCallback(Resource):
   @app.param('url', 'used to set the Callback url for the queue enter callback', 'query')
   @app.response(HTTPStatus.OK, 'JSON data {"url":url}')
   @app.response(HTTPStatus.UNAUTHORIZED, 'Authorization required')
-  async def get(self, device):
+  async def get(self):
     '''Returns and sets queueEnter callback url.
     '''
     if not request.admin:
@@ -1323,7 +1323,7 @@ class QueueLeaveCallback(Resource):
   @app.param('url', 'used to set the Callback url for the queue leave callback', 'query')
   @app.response(HTTPStatus.OK, 'JSON data {"url":url}')
   @app.response(HTTPStatus.UNAUTHORIZED, 'Authorization required')
-  async def get(self, device):
+  async def get(self):
     '''Returns and sets queueLeave callback url.
     '''
     if not request.admin: