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