<div dir="ltr">Sorry, it&#39;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">&lt;<a href="mailto:michofr@gmail.com">michofr@gmail.com</a>&gt;</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">&lt;<a href="mailto:danny@debsinc.com" target="_blank">danny@debsinc.com</a>&gt;</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;">&nbsp;</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;">&nbsp;</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&#39;m facing the below problem:<br>
<br>
-- Executing [112@did:1] AGI(&quot;SIP/123456-08f44c00&quot;,
&quot;dial.pl|112&quot;) in new stack<br>
&nbsp;&nbsp;&nbsp; -- Launched AGI Script /var/lib/asterisk/agi-bin/dial.pl<br>
&nbsp; ==&nbsp; dial.pl|112: Failed to execute &#39;/var/lib/asterisk/agi-bin/dial.pl&#39;:
No such file or directory<br>
&nbsp; == Auto fallthrough, channel &#39;SIP/123456-08f44c00&#39; status is &#39;UNKNOWN&#39;<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&nbsp; ani.agi&nbsp; dial.pl&nbsp; directory.agi&nbsp;
eagi-sphinx-test&nbsp; eagi-test&nbsp; helloworld.php&nbsp; jukebox.agi&nbsp;
micho.php&nbsp; 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 &lt;<a href="mailto:yawarhadi@gmail.com" target="_blank">yawarhadi@gmail.com</a>&gt; 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=&gt;112,1,AGI(DialNumber.pl|${EXTEN});<br>
exten=&gt;112,2,Dial(SIP/Terminator/${DestNo}|);<br>
exten=&gt;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&nbsp; (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;">&nbsp;</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 &lt;<a href="mailto:michofr@gmail.com" target="_blank">michofr@gmail.com</a>&gt;
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&#39;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 &lt;<a href="mailto:yawarhadi@gmail.com" target="_blank">yawarhadi@gmail.com</a>&gt;
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;">&nbsp;</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 &lt;<a href="http://asterisk.org" target="_blank">asterisk.org</a>@<a href="http://sedwards.com" target="_blank">sedwards.com</a>&gt; 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>
&gt; I need the following....A customer will dial a specific number like
112,this<br>
&gt; will fire a php AGI script...The AGI script will connect to the database
and<br>
&gt; see if this number (112) is registered in a specific table...If yes, AGI<br>
&gt; script will return to asterisk a destination number registered in that
table<br>
&gt; and match the 112 then asterisk will dial out the number fetched<br>
&gt;<br>
&gt; 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&#39;t this be on -biz?<br>
<br>
Thanks in advance,<br>
------------------------------------------------------------------------<br>
<font color="#888888"><span style="color: rgb(136, 136, 136);">Steve Edwards &nbsp; &nbsp;
&nbsp;<a href="mailto:sedwards@sedwards.com" target="_blank">sedwards@sedwards.com</a>
&nbsp; &nbsp; &nbsp;Voice: +1-760-468-3867 PST<br>
Newline &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; 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>
&nbsp; <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>
&nbsp;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>
&nbsp; <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;">&nbsp;</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>
&nbsp; <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>
&nbsp;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>
&nbsp; <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;">&nbsp;</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>
 &nbsp; <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>