I am trying to bridge 2 calls using phpgi, find below my phpagi code, I am stuck at trying to get the channel object for the 2nd call executed from the phpagi script.
I don’t know what special function does your IVR script, But the above statement can be achieve, as David55 says, a simple IVR ending in the Dial application
Can you share a code to achieve this?
The reason I want to go through IVR/PHPAGI is that i need the PartyA to enter a pin number that must be verified before calling Party B.
there are multiples examples on the webs and a lot of help resources , Start reading and learning and come back after you have read the information of the below links
Here is an output of what I have so far, its getting bridged, but there is no audio in or out
== Using SIP RTP CoS mark 5
-- Executing [5555@default:1] Goto("SIP/50.62.149.238-0038c3c8", "goinone,s,1") in new stack
-- Goto (goinone,s,1)
-- Executing [s@goinone:1] Answer("SIP/50.62.149.238-0038c3c8", "500") in new stack
-- Executing [s@goinone:2] AGI("SIP/50.62.149.238-0038c3c8", "roll.php,s,mikeosake") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/roll.php
-- AGI Script Executing Application: (Dial) Options: (SIP/ICNGwP/07061140114)
== Using SIP RTP CoS mark 5
-- Called SIP/ICNGwP/07061140114
-- SIP/ICNGwP-0038c3c9 is making progress passing it to SIP/50.62.149.238-0038c3c8
[Feb 6 21:31:35] NOTICE[30677][C-00395733]: res_rtp_asterisk.c:3671 ast_rtp_read: Unknown RTP codec 126 received from '192.168.1.3:58650'
-- SIP/ICNGwP-0038c3c9 is ringing
-- SIP/ICNGwP-0038c3c9 is making progress passing it to SIP/50.62.149.238-0038c3c8
-- SIP/ICNGwP-0038c3c9 answered SIP/50.62.149.238-0038c3c8
-- Remotely bridging SIP/50.62.149.238-0038c3c8 and SIP/ICNGwP-0038c3c9