Hal De 4 年 前
コミット
b37e5a3ff5
1 ファイル変更4 行追加4 行削除
  1. 4 4
      app/app.py

+ 4 - 4
app/app.py

@@ -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):