|
@@ -262,7 +262,7 @@ async def celCallback(mngr: Manager, msg: Message):
|
|
|
if (msg.Application == 'Queue') and (msg.Exten in ('1','2200')):
|
|
if (msg.Application == 'Queue') and (msg.Exten in ('1','2200')):
|
|
|
queue_changed=False;
|
|
queue_changed=False;
|
|
|
if (msg.EventName == 'APP_START'):
|
|
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;
|
|
queue_changed = 1;
|
|
|
if (msg.EventName == 'APP_END'):
|
|
if (msg.EventName == 'APP_END'):
|
|
|
call = app.cache['cel_queue_calls'].pop(msg.LinkedID,False);
|
|
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.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.OK, 'JSON data {"url":url}')
|
|
|
@app.response(HTTPStatus.UNAUTHORIZED, 'Authorization required')
|
|
@app.response(HTTPStatus.UNAUTHORIZED, 'Authorization required')
|
|
|
- async def get(self, device):
|
|
|
|
|
|
|
+ async def get(self):
|
|
|
'''Returns and sets groupRinging callback url.
|
|
'''Returns and sets groupRinging callback url.
|
|
|
'''
|
|
'''
|
|
|
if not request.admin:
|
|
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.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.OK, 'JSON data {"url":url}')
|
|
|
@app.response(HTTPStatus.UNAUTHORIZED, 'Authorization required')
|
|
@app.response(HTTPStatus.UNAUTHORIZED, 'Authorization required')
|
|
|
- async def get(self, device):
|
|
|
|
|
|
|
+ async def get(self):
|
|
|
'''Returns and sets groupAnswered callback url.
|
|
'''Returns and sets groupAnswered callback url.
|
|
|
'''
|
|
'''
|
|
|
if not request.admin:
|
|
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.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.OK, 'JSON data {"url":url}')
|
|
|
@app.response(HTTPStatus.UNAUTHORIZED, 'Authorization required')
|
|
@app.response(HTTPStatus.UNAUTHORIZED, 'Authorization required')
|
|
|
- async def get(self, device):
|
|
|
|
|
|
|
+ async def get(self):
|
|
|
'''Returns and sets queueEnter callback url.
|
|
'''Returns and sets queueEnter callback url.
|
|
|
'''
|
|
'''
|
|
|
if not request.admin:
|
|
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.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.OK, 'JSON data {"url":url}')
|
|
|
@app.response(HTTPStatus.UNAUTHORIZED, 'Authorization required')
|
|
@app.response(HTTPStatus.UNAUTHORIZED, 'Authorization required')
|
|
|
- async def get(self, device):
|
|
|
|
|
|
|
+ async def get(self):
|
|
|
'''Returns and sets queueLeave callback url.
|
|
'''Returns and sets queueLeave callback url.
|
|
|
'''
|
|
'''
|
|
|
if not request.admin:
|
|
if not request.admin:
|