<div dir="ltr">Dear Sir,<br><br>I'm facing the below problem:<br><br>-- Executing [112@did:1] AGI("SIP/123456-08f44c00", "dial.pl|112") in new stack<br> -- Launched AGI Script /var/lib/asterisk/agi-bin/dial.pl<br>
== dial.pl|112: Failed to execute '/var/lib/asterisk/agi-bin/dial.pl': No such file or directory<br> == Auto fallthrough, channel 'SIP/123456-08f44c00' status is 'UNKNOWN'<br><br>The file dial.pl is already created and exist in the correct location as you can see below:<br>
<br>[root@switch1 agi-bin]# ls<br>agi-test.agi ani.agi dial.pl directory.agi eagi-sphinx-test eagi-test helloworld.php jukebox.agi micho.php my_agi.log<br>[root@switch1 agi-bin]# pwd<br>/var/lib/asterisk/agi-bin<br>
[root@switch1 agi-bin]# <br><br>What could be the issue here?<br><br>Thanks a lot for help<br><br><div class="gmail_quote">On Fri, Feb 20, 2009 at 3:30 PM, Yawar Hadi <span dir="ltr"><<a href="mailto:yawarhadi@gmail.com">yawarhadi@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;">okay <br>this is the dial plan u can test it and let me know if u want more information ...<br>
and script is attached.<br><br>exten=>112,1,AGI(DialNumber.pl|${EXTEN});<br>exten=>112,2,Dial(SIP/Terminator/${DestNo}|);<br>
exten=>112,3,Hangup();<br><br>on second in place of termeinator u have to use the ip of terminator to which u r sending ur traffic.if u want to call sip sip of from one soft phone to second soft phone then remoce /terminator ok... like (SIP/${DestNo})<br>
<br>mail be back if any problem.<div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Fri, Feb 20, 2009 at 1:07 PM, michel freiha <span dir="ltr"><<a href="mailto:michofr@gmail.com" target="_blank">michofr@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;">
<div dir="ltr">Dear Yawar,<br><br>I'll appreciate a lot if you send to me these scripts in order to test<br><br>Regards<br><br><div class="gmail_quote">On Fri, Feb 20, 2009 at 5:58 AM, Yawar Hadi <span dir="ltr"><<a href="mailto:yawarhadi@gmail.com" target="_blank">yawarhadi@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;">i have in perl AGI script if u want then let me know ...?<div><div></div><div>
<br><br><div class="gmail_quote">On Fri, Feb 20, 2009 at 4:59 AM, Steve Edwards <span dir="ltr"><<a href="http://asterisk.org" target="_blank">asterisk.org</a>@<a href="http://sedwards.com" target="_blank">sedwards.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;"><div>On Fri, 20 Feb 2009, michel freiha wrote:<br>
<br>
> I need the following....A customer will dial a specific number like 112,this<br>
> will fire a php AGI script...The AGI script will connect to the database and<br>
> see if this number (112) is registered in a specific table...If yes, AGI<br>
> script will return to asterisk a destination number registered in that table<br>
> and match the 112 then asterisk will dial out the number fetched<br>
><br>
> Please let me know if you need any other information<br>
<br>
</div>1) How much are you paying for us to do your work?<br>
<br>
2) Shouldn't this be on -biz?<br>
<br>
Thanks in advance,<br>
------------------------------------------------------------------------<br>
<font color="#888888">Steve Edwards <a href="mailto:sedwards@sedwards.com" target="_blank">sedwards@sedwards.com</a> Voice: +1-760-468-3867 PST<br>
Newline Fax: +1-760-731-3000<br>
</font><div><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>
</div></div></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>Best regards <br><br>Yawar Hadi Noshahi<br> QAU Islamabad <br>(+92-0300-5504798)<br>
</font><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>
<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><br clear="all"><br>-- <br>Best regards <br><br>Yawar Hadi Noshahi<br>
QAU Islamabad <br>(+92-0300-5504798)<br>
</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></div>