[root@efax agi-bin]# /usr/bin/perl -v<br><br>This is perl, v5.8.5 built for i386-linux-thread-multi<br><br><br>Debug shows nothing:<br> -- Launched AGI Script /var/lib/asterisk/agi-bin/GetEmailfromDID.agi<br>AGI Tx >> agi_request:
GetEmailfromDID.agi<br>AGI Tx >> agi_channel: Zap/23-1<br>AGI Tx >> agi_language: en<br>AGI Tx >> agi_type: Zap<br>AGI Tx >> agi_uniqueid: 1195061174.4<br>AGI Tx >> agi_callerid: 5706016716<br>
AGI Tx >> agi_calleridname: Test Networks <br>AGI Tx >> agi_callingpres: 0<br>AGI Tx >> agi_callingani2: 0<br>AGI Tx >> agi_callington: 33<br>AGI Tx >> agi_callingtns: 0<br>AGI Tx >> agi_dnid: 5706010280
<br>AGI Tx >> agi_rdnis: unknown<br>AGI Tx >> agi_context: macro-faxreceive<br>AGI Tx >> agi_extension: s<br>AGI Tx >> agi_priority: 2<br>AGI Tx >> agi_enhanced: 0.0<br>AGI Tx >> agi_accountcode:
<br>AGI Tx >> <br> -- AGI Script GetEmailfromDID.agi completed, returning 0<br><br>Just returned with a 0 and doesn't do anything it is suppose to do. I'm kind of at a loss.<br><br><br><div class="gmail_quote">
On Nov 14, 2007 11:40 AM, Mindaugas Kezys <<a href="mailto:mkezys@gmail.com">mkezys@gmail.com</a>> 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 link="blue" vlink="purple" lang="LT">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Make sure </span>/usr/bin/perl can be reached.</p>
<p> </p>
<p>Also try in your CLI:</p>
<p> </p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">agi debug</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Same case happens when I do not have php-cli installed for php
AGI scripts.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Mindaugas Kezys</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US"><a href="http://www.kolmisoft.com" target="_blank">http://www.kolmisoft.com</a></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">MOR – Advanced Billing for Asterisk PBX</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> <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>On Behalf Of </b>Matt<br>
<b>Sent:</b> Wednesday, November 14, 2007 4:00 PM<br>
<b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br>
<b>Subject:</b> [asterisk-users] Problem with AGI Script</span></p>
</div><div><div></div><div class="Wj3C7c">
<p> </p>
<p>I have asterisk 1.2.18 running on a new system we just
installed. Although I've used AGIs many times in the past, I'm
stumped on this one. It may just be a simple issue that I need another
eyeset to look at.<br>
<br>
My AGI does the following:<br>
#!/usr/bin/perl<br>
<br>
#Load a few modules...<br>
use Asterisk::AGI;<br>
use DBI;<br>
<br>
$AGI = new Asterisk::AGI;<br>
<br>
#Grab input from Asterisk<br>
my %input = $AGI->ReadParse();<br>
<br>
<br>
#Some Debugging<br>
$AGI->exec('SayDigits',$ARGV[0]);<br>
exit;<br>
--------<br>
All seems fine. If I run the script from the command line it works as
expected:<br>
[root@efax agi-bin]# ./GetEmailFromDID.agi 333 <br>
EXEC SayDigits "333"<br>
<br>
However, when actually running in practice I get:<br>
-- Executing AGI("Zap/23-1",
"GetEmailfromDID.agi|5706016716") in new stack<br>
-- Launched AGI Script
/var/lib/asterisk/agi-bin/GetEmailfromDID.agi <br>
-- AGI Script GetEmailfromDID.agi completed, returning 0<br>
--------<br>
extensions.conf<br>
[macro-faxreceive]<br>
exten => s,1,Set(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif)<br>
exten => s,2,agi(GetEmailfromDID.agi|${CALLERID (number)})<br>
exten => s,3,rxfax(${FAXFILE})<br>
exten => s,104,Set(EMAILADDR=<a href="mailto:faxbin@efaxplace.net" target="_blank">faxbin@efaxplace.net</a>)<br>
exten => s,105,Goto(3)<br>
<br>
<br>
Any thoughts on why asterisk doesn't seem to be passing anything to the script
and the script doesn't seem to be passing anything back? When I call I do
not hear the digits read to me, instead I just get thrown to the next object
after the digit reading. </p>
</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><br>