I have a problem with AMI Originate, when I make a call to Local / XXXXX @ internal context IVR2 s extension, and ringing in the executing context, I need to perform the Originate, the answer is context fence and not before.
My PHP AMI Originate
$asm->send_request('Originate',
array('Channel'=>'Local/9XXXXXXXX@internal',
'Context'=>'IVR2',
'Exten'=>'s',
'Timeout' => '50000',
'Async'=>'1',
'variable' => 'id=' . $id . '|callTo=' . $ddi . '|callFrom=' . $cli . '|transferTo=' . $transfer,
'MaxRetries' => '0',
'RetryTime' => '0',
'Priority'=>'1',
'Callerid'=>$cli));
My Outbound Context
[internal]
exten => _9[56789]XXXXXXX,1,Answer()
exten => _9[56789]XXXXXXX,n,Set(VOLUME(TX)=3)
exten => _9[56789]XXXXXXX,n,Set(VOLUME(RX)=3)
exten => _9[56789]XXXXXXX,n,Dial(SIP/SipProvider/${EXTEN},30)
exten => _9[56789]XXXXXXX,n,Hangup
My IVR Context
[IVR2]
exten => s,1,Answer()
exten => s,n,Playback(aware/IVRRetiroCAC)
exten => h,1,NoOp(------- Hangup My IVR ----------)
exten => h,n,Hangup()
Please Help