Wow I can't believe I missed this, and I can't believe no one else saw it! Look at the word FROM in both the script, and the way it is called. 'From' and 'from'... that doesn't work.<br><br>
<div class="gmail_quote">On Nov 14, 2007 8:59 AM, Matt <<a href="mailto:mhoppes@gmail.com">mhoppes@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;">
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.
<br>
</blockquote></div><br>