Thanks Todd, I didn't realise that it worked like that. I thought Asterisk would find it and serve it.<div>I installed StarPy now, and I have a working AGI script.</div><div>Regards,</div><div>Michael</div><div><br><div class="gmail_quote">
2009/8/29 Todd Fulton <span dir="ltr"><<a href="mailto:todd.fulton@yahoo.com">todd.fulton@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><span style="font-family:Verdana;color:#000000;font-size:10pt"><br>Hi,<br><br>Did you start your agi server? It should be listening on port 4573 in order for asterisk to be able to connect. Once you do start the server, telnet to localhost 4573 (or whatever your agi host is) and you'll know if its available.<br>
<br><br>Todd<br><br><br><br>
<blockquote style="border-left:2px solid blue;margin-left:8px;padding-left:8px;font-size:10pt;color:black;font-family:verdana">
<div><div><div></div><div class="h5">
-------- Original Message --------<br>
Subject: [asterisk-users] cannot run agi scripts<br>
From: Michael Connors <<a href="mailto:connorsml@gmail.com" target="_blank">connorsml@gmail.com</a>><br>
Date: Sat, August 29, 2009 5:29 am<br>
To: <a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a><br>
<br>
Hi,<div>I am new to Asterisk, I installed it add got it working for incoming calls using a sip provider.</div><div><br></div><div>I can for example run the following successfully:</div><div><br></div><div><div>exten => 124,1,Wait(1)</div>
<div>exten => 124,2,Playback(demo-thanks)</div><div>exten => 124,3,Hangup</div><div><br></div><div>My problem is that I can not run AGI scripts, I tried the default test-agi.agi and a more simple python based one. I am using the following to use AGI.</div>
<div><br></div><div><div>exten => 124,1,wait(1)</div><div>exten => 124,2,AGI(hello.agi)</div><div>exten => 124,3,Hangup</div><div><br></div><div>The result of this is that the call goes straight to the SIP providers voice mail system, and it does not register in my /var/log/asterisk/messages log file.</div>
<div><br></div><div>My AGI scripts are stored in /usr/lib/asterisk/agi-bin, which is read, write and execute for all users, as are all the scripts in the directory.</div><div><br></div><div>In my asterisk.conf I have the following line:</div>
</div></div><div><br clear="all">astagidir => /usr/lib/asterisk/agi-bin</div><div><br></div><div>I am running Asterisk 1.4.17~dfsg-2ubuntu1</div><div><br></div><div>Any help would be greatly appreciated.</div><div>Regards,<br>
-- <br>Michael Connors<br>Leiden 2313 HZ,<br>The Netherlands<br><br> </div> </div></div><hr>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
AstriCon 2009 - October 13 - 15 Phoenix, Arizona<br>
Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</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>
</div>
</blockquote></span></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>
AstriCon 2009 - October 13 - 15 Phoenix, Arizona<br>
Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</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><br clear="all"><br>-- <br>Michael Connors<br>Burggravenlaan 148,<br>
Leiden 2313 HZ,<br>The Netherlands<br><br>0031611520252<br>
</div>