|
|
@@ -702,16 +702,16 @@ class BXfer(Resource):
|
|
|
return errorReply(reply.message)
|
|
|
|
|
|
@app.route('/hangup/<user>')
|
|
|
-class BXfer(Resource):
|
|
|
+class Hangup(Resource):
|
|
|
@app.param('user', 'User to hangup', 'path')
|
|
|
@app.response(HTTPStatus.OK, 'Json reply')
|
|
|
@app.response(HTTPStatus.UNAUTHORIZED, 'Authorization required')
|
|
|
- async def get(self, userA, userB):
|
|
|
+ async def get(self, user):
|
|
|
'''Blind call transfer
|
|
|
'''
|
|
|
- channel = await getUserChannel(userA)
|
|
|
+ channel = await getUserChannel(user)
|
|
|
if not channel:
|
|
|
- return noUserChannel(userA)
|
|
|
+ return noUserChannel(user)
|
|
|
reply = await manager.send_action({'Action':'Hangup',
|
|
|
'Channel':channel})
|
|
|
if isinstance(reply, Message):
|