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">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.
<br>