<div dir="ltr">Sorry, it's<br>use Asterisk::AGI;<br><br><div class="gmail_quote">On Fri, Feb 20, 2009 at 10:13 PM, michel freiha <span dir="ltr"><<a href="mailto:michofr@gmail.com">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">Kindly note that at line 6 I have:<br><br>se Asterisk::AGI;<br><br>Regards<br>
<br><div class="gmail_quote"><div class="Ih2E3d">On Fri, Feb 20, 2009 at 9:44 PM, Danny Nicholas <span dir="ltr"><<a href="mailto:danny@debsinc.com" target="_blank">danny@debsinc.com</a>></span> wrote:<br>
</div><div><div></div><div class="Wj3C7c"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="blue" lang="EN-US">
<div>
<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Dial.pl is </span></font></p>
<ol style="margin-top: 0in;" start="1" type="1">
<li style="color: navy;"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial;">executable</span></font></li>
<li style="color: navy;"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial;">owned
by asterisk</span></font></li>
<li style="color: navy;"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial;">passed
perl syntax (perl –wc dial.pl)</span></font></li>
</ol>
<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<div>
<div style="text-align: center;" align="center"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">
<hr size="2" width="100%" align="center">
</span></font></div>
<p><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;">
<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>
[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b><span style="font-weight: bold;">On Behalf Of </span></b>michel freiha<br>
<b><span style="font-weight: bold;">Sent:</span></b> Friday, February 20, 2009
1:41 PM<br>
<b><span style="font-weight: bold;">To:</span></b> Asterisk
Users Mailing List - Non-Commercial Discussion<br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [asterisk-users] AGI
script</span></font></p>
</div><div><div></div><div>
<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>
<div>
<p style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">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</span></font></p>
<div>
<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">On Fri, Feb 20, 2009 at 3:30 PM, Yawar Hadi <<a href="mailto:yawarhadi@gmail.com" target="_blank">yawarhadi@gmail.com</a>> wrote:</span></font></p>
<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">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.</span></font></p>
<div>
<div>
<p style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>
<div>
<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">On Fri, Feb 20, 2009 at 1:07 PM, michel freiha <<a href="mailto:michofr@gmail.com" target="_blank">michofr@gmail.com</a>>
wrote:</span></font></p>
<div>
<p style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">Dear Yawar,<br>
<br>
I'll appreciate a lot if you send to me these scripts in order to test<br>
<br>
Regards</span></font></p>
<div>
<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">On Fri, Feb 20, 2009 at 5:58 AM, Yawar Hadi <<a href="mailto:yawarhadi@gmail.com" target="_blank">yawarhadi@gmail.com</a>>
wrote:</span></font></p>
<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">i have in perl AGI script if u want then let me know ...?</span></font></p>
<div>
<div>
<p style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>
<div>
<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">On Fri, Feb 20, 2009 at 4:59 AM, Steve Edwards <<a href="http://asterisk.org" target="_blank">asterisk.org</a>@<a href="http://sedwards.com" target="_blank">sedwards.com</a>> wrote:</span></font></p>
<div>
<p style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">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</span></font></p>
</div>
<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">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"><span style="color: rgb(136, 136, 136);">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</span></font></span></font></p>
<div>
<div>
<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"><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></span></font></p>
</div>
</div>
</div>
<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"><br>
<br clear="all">
</span></font></p>
</div>
</div>
<p><font size="3" color="#888888" face="Times New Roman"><span style="font-size: 12pt; color: rgb(136, 136, 136);">-- <br>
Best regards <br>
<br>
Yawar Hadi Noshahi<br>
QAU Islamabad
<br>
(+92-0300-5504798)<br>
</span></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></p>
</div>
<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>
</div>
<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"><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></span></font></p>
</div>
<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"><br>
<br clear="all">
<br>
-- <br>
Best regards <br>
<br>
Yawar Hadi Noshahi<br>
QAU Islamabad
<br>
(+92-0300-5504798)</span></font></p>
</div>
</div>
<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"><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></span></font></p>
</div>
<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>
</div>
</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></blockquote></div></div></div><br></div>
</blockquote></div><br></div>