ソースを参照

debug originate

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

+ 9 - 7
app/app.py

@@ -785,13 +785,15 @@ class Originate(Resource):
     if device in NONEs:
       return noUserDevice(user)
     device = device.replace('{}&'.format(user), '')
-    reply = await manager.send_action({'Action':'Originate',
-                                       'Channel':'PJSIP/{}'.format(device),
-                                       'Context':'from-internal',
-                                       'Exten':number,
-                                       'Priority': '1',
-                                       'async':'false',
-                                       'Callerid': user})
+    _act = { 'Action':'Originate',
+             'Channel':'PJSIP/{}'.format(device),
+             'Context':'from-internal',
+             'Exten':number,
+             'Priority': '1',
+             'async':'false',
+             'Callerid': user}
+    app.logger.warning(_act)
+    reply = await manager.send_action(_act)
     if isinstance(reply, Message):
       if reply.success:
         return successfullyOriginated(user, number)