<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>Can't run AGI for outbound call</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hi</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Just installed Asterisk on a Debian Woody/testing. </FONT>
<BR><FONT SIZE=2 FACE="Arial">I want to create a AGI script that is run after an outbound call is answered. I did this a while back (many versions ago).</FONT></P>
<P><FONT SIZE=2 FACE="Arial">The problem is Asterisk does not seem to know the AGI application. I create a file test.call and place it in the outbound spool directory:</FONT></P>
<P><FONT SIZE=2 FACE="Arial">the test.call file looks like this:</FONT>
<BR> <FONT SIZE=2 FACE="Arial">#Simple test call script.</FONT>
<BR> <FONT SIZE=2 FACE="Arial">#call my NetMeeting client</FONT>
<BR> <FONT SIZE=2 FACE="Arial">Channel: h323/ivar@192.168.0.153</FONT>
<BR> <FONT SIZE=2 FACE="Arial">MaxRetries: 2</FONT>
<BR> <FONT SIZE=2 FACE="Arial">RetryTime: 60</FONT>
<BR> <FONT SIZE=2 FACE="Arial">WaitTime: 30</FONT>
<BR> <FONT SIZE=2 FACE="Arial">Application: AGI(agi-test.agi)</FONT>
<BR> <FONT SIZE=2 FACE="Arial">Data: 1234</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">"agi-test.agi" is under "/usr/share/asterisk/agi-bin" (as configured in asterisk.conf)</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Here is the output on the console:</FONT>
<BR><FONT SIZE=2 FACE="Arial">*CLI> -- Attempting call on h323/ivar@192.168.0.153 for application AGI(agi-test.agi)(1234) (Retry 1)</FONT>
<BR> <FONT SIZE=2 FACE="Arial">Feb 14 23:53:25 WARNING[7958]: pbx.c:4164 ast_pbx_run_app: No such application 'AGI(agi-test.agi)'</FONT>
<BR> <FONT SIZE=2 FACE="Arial">Feb 14 23:53:25 NOTICE[7958]: pbx_spool.c:242 attempt_thread: Call completed to h323/ivar@192.168.0.153</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Can anyone spot quickly what's wrong here?</FONT>
<BR><FONT SIZE=2 FACE="Arial">I installed asterisk with apt. Should I have compiled it myself?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I tried running "Application: VoiceMail" instead. That got me farther - I just couldn't hear anything after I answered the call (anyone know what codec I should use with NetMeeting).</FONT></P>
<P><FONT SIZE=2 FACE="Arial">I'll be thankfull for any hints and/or tips.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Best regards,</FONT>
<BR> <FONT SIZE=2 FACE="Arial">ívar</FONT>
</P>
</BODY>
</HTML>