Try to making a simple dialer with NodeJS. Want to start a call with originate command using AMI, then move this call to a queue. Asterisk takes care of the rest. With the following command, i can do what i want but problem is CallerID parameter is not working.
I set trunk's callerid , when i try to make a manuel outbound call. Its working but not working originate command. How can i make this work ? It is not preferred to play with config files, but we can edit them if necessary.
ami.action('Originate',{
Channel: 'PJSIP/'+req.params.callee+'@'+req.params.caller,
Exten: req.params.ext,
Context: 'ext-queues',
Priority: 1,
Async: 'false',
Variable: req.params.actid,
ActionID:req.params.actid,
CallerID:req.params.callee+' <'+req.params.callee+'>'}
Channel: 'PJSIP/number@trunkname', Exten: 1099, Context: 'ext-queues', Priority: 1, Async: 'false' ActionID: '123', CallerID: 9876543210