|
|
@@ -714,12 +714,12 @@ class Originate(Resource):
|
|
|
if device in NONEs:
|
|
|
return noUserDevice(user)
|
|
|
reply = await manager.send_action({'Action':'Originate',
|
|
|
- 'Channel':'PJSIP/{}'.format(device),
|
|
|
+ 'Channel':'local/{}'.format(user),
|
|
|
'Context':'from-internal',
|
|
|
'Exten':number,
|
|
|
'Priority': '1',
|
|
|
- 'Callerid': user,
|
|
|
- 'Variable': 'SIPADDHEADER="Call-Info:\;answer-after=0"'})
|
|
|
+ 'async':'true',
|
|
|
+ 'Callerid': user})
|
|
|
if isinstance(reply, Message):
|
|
|
if reply.success:
|
|
|
return successfullyOriginated(user, number)
|