<br>Hi, Bruce ,<br><br>would you remove Async from your php script,<br>and give it a try<br><br>regards<br>Dhaval<br><div class="gmail_quote">On Thu, Dec 24, 2009 at 5:45 AM, Bruce Nik <span dir="ltr"><<a href="mailto:brucevoip@gmail.com">brucevoip@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Jarrod,<div><br></div><div>Thanks for the input. Can you please include a sample of your work? It will really save me days of headache and tests if I can start with something that is tested to work.</div>
<div><br></div><div>
I really appreciate your response.</div><div><br></div><div>In the meantime, I will go check meetme creation rules.</div><div><br></div><div>Regards,</div><div>Bruce<div><div></div><div class="h5"><br><br><div class="gmail_quote">
On Wed, Dec 23, 2009 at 7:03 PM, Jarrod Lash <span dir="ltr"><<a href="mailto:jarrod@fed-com.com" target="_blank">jarrod@fed-com.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Bruce,<br>
<br>
What I have done for apps like this is call the first guy and at the<br>
end of your dialplan put him in a meetme room. In your script watch<br>
for the meetme room to be created in the AMI output.<br>
<br>
Once the room is created originate a call to the other guy and dump<br>
him into that meetme room when he answers.<br>
<br>
<br>
--<br>
Jarrod Lash, <<a href="mailto:jarrod@fed-com.com" target="_blank">jarrod@fed-com.com</a>><br>
Federated Communications, LLC.<br>
<a href="http://www.fed-com.com" target="_blank">www.fed-com.com</a><br>
Office: +1-412-357-2127<br>
Mobile: +1-412-999-0049<br>
Fax: +1-412-545-8368<br>
<div><div></div><div><br>
<br>
On Wed, Dec 23, 2009 at 6:19 PM, Bruce Nik <<a href="mailto:brucevoip@gmail.com" target="_blank">brucevoip@gmail.com</a>> wrote:<br>
> Hi Guys,<br>
> I am trying to make a web form where a person is allowed to put in<br>
> $phoneNumber, $dialNumber, and $spoofNumber to make a call with spoof caller<br>
> ID. There are a few problems that I am facing with Asterisk AMI Originate<br>
> command. The reason why I want to use the darn AMI Originate is because I am<br>
> sending calls to mobile phones and I want to have some accountability and to<br>
> know if a call was connected for billing purposes or not. Calls go to PSTN<br>
> through SIP provider so all signaling is available.<br>
> First, if i use AMI Originate to dial both parties with the set CallerID<br>
> then, one party may pick up than the other and channel is not bridged at<br>
> ringing. So, this can confuse the callee. So, I thought I should send calls<br>
> to a context first and then ask customer enter $spoofNumber and then place<br>
> call but then I am facing another problem. Using that, the internal context<br>
> is called first and all announcements are made and then the<br>
> SIP/sipProvider/$phoneNumb is dialed. Or at least it's dialed at the same<br>
> time but since it takes time to pick ones phone context already goes over<br>
> it's announcement for putting in spoof number and dialnumber. Please guide<br>
> me how to do this properly. Following is the code and the context:<br>
> $sys_ip = "127.0.0.1";<br>
> $User_str = "test";<br>
> $Secret_str = "test";<br>
> $phoneNumb = "14167777777";<br>
> $dialNumb = "14168888888";<br>
> $spoofNumb = "1416999999";<br>
> $oSocket = fsockopen($sys_ip, 5038, $errnum, $errdesc) or die("Connection to<br>
> host failed");<br>
> fputs($oSocket, "Action: login\r\n");<br>
> fputs($oSocket, "Username: $User_str\r\n");<br>
> fputs($oSocket, "Secret: $Secret_str\r\n\r\n");<br>
> fputs($oSocket, "Events: off\r\n\r\n");<br>
> fputs($oSocket, "Action: originate\r\n");<br>
> fputs($oSocket, "Channel: SIP/testTrunk/$phoneNumb\r\n");<br>
> fputs($oSocket, "Exten: $dialNumb\r\n");<br>
> fputs($oSocket, "Context: testphp\r\n");<br>
> fputs($oSocket, "Priority: 1\r\n\r\n");<br>
> fputs($oSocket, "Timeout: 10000\r\n");<br>
> fputs($oSocket, "CallerId: $spoofNumb\r\n");<br>
> fputs($oSocket, "Async: true\r\n");<br>
> fputs($oSocket, "Action: Logoff\r\n\r\n");<br>
> fclose($oSocket);<br>
><br>
> /etc/asterisk/extensions.conf<br>
> [testphp]<br>
> exten => _X.,1,Answer()<br>
> exten =><br>
> _X.,n,Playback(/var/lib/asterisk/sounds/please_enter_dialnumber_and_spoof_callerid)<br>
> exten => _X.,n,Read(dialnumber,,10)<br>
> exten => _X.,n,Read(spoofnumber,,10)<br>
> exten => _X.,n,Playback(connecting_now)<br>
> exten => _X.,n,Dial(SIP/testTrunk/$dialNumb)<br>
> exten => _X.,n,Hangup()<br>
> Thanks a lot.<br>
</div></div>> _______________________________________________<br>
> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
><br>
> asterisk-users mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
><br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>