[asterisk-users] Set up two PSTN calls and then join them

CB kjcsb at xnet.co.nz
Sat Oct 13 03:30:17 CDT 2007


I wish to set up two PSTN calls and then connect them similar to Jajah (is
this called 3pcc?). The PSTN interconnect is handled by a third party SIP
provider.

 

I can do this using the manager or call files. An example (using php) would
be:

fputs($oSocket, "Action: login\r\n");

fputs($oSocket, "Events: off\r\n");

fputs($oSocket, "Username: $strUser\r\n");

fputs($oSocket, "Secret: $strSecret\r\n\r\n");

fputs($oSocket, "Action: originate\r\n");

fputs($oSocket, "Channel: $strChannel\r\n");

fputs($oSocket, "WaitTime: $strWaitTime\r\n");

fputs($oSocket, "CallerId: $strCallerId\r\n");

fputs($oSocket, "Exten: $strExten\r\n");

fputs($oSocket, "Context: $strContext\r\n");

fputs($oSocket, "Priority: $strPriority\r\n\r\n");

fputs($oSocket, "Action: Logoff\r\n\r\n");

 

This simulates one extension calling another and has some limitations e.g.
the CDR records show one call which doesn't meet my requirements for billing
purposes.

 

What's the best way to achieve this join up two calls scenario? Any
suggestions appreciated.

 

Cameron

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071013/bb902881/attachment.htm 


More information about the asterisk-users mailing list