Hi Just installed Asterisk on a Debian Woody/testing. 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). 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: the test.call file looks like this: #Simple test call script. #call my NetMeeting client Channel: h323/ivar@192.168.0.153 MaxRetries: 2 RetryTime: 60 WaitTime: 30 Application: AGI(agi-test.agi) Data: 1234 "agi-test.agi" is under "/usr/share/asterisk/agi-bin" (as configured in asterisk.conf) Here is the output on the console: *CLI> -- Attempting call on h323/ivar@192.168.0.153 for application AGI(agi-test.agi)(1234) (Retry 1) Feb 14 23:53:25 WARNING[7958]: pbx.c:4164 ast_pbx_run_app: No such application 'AGI(agi-test.agi)' Feb 14 23:53:25 NOTICE[7958]: pbx_spool.c:242 attempt_thread: Call completed to h323/ivar@192.168.0.153 Can anyone spot quickly what's wrong here? I installed asterisk with apt. Should I have compiled it myself? 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). I'll be thankfull for any hints and/or tips. Best regards, ?var -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050214/6137ab86/attachment.htm
On Tue, 2005-02-15 at 00:07 +0000, ?var Ragnarsson wrote:> 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: > > the test.call file looks like this: > #Simple test call script. > #call my NetMeeting client > Channel: h323/ivar@192.168.0.153 > MaxRetries: 2 > RetryTime: 60 > WaitTime: 30 > Application: AGI(agi-test.agi) > Data: 1234[SNIP]> Feb 14 23:53:25 WARNING[7958]: pbx.c:4164 ast_pbx_run_app: No > such application 'AGI(agi-test.agi)'Asterisk is looking for an application called 'AGI(agi-test.agi)' and that one obviously does not exist. The Application property must only contain the name of the application, i.e. AGI. Any parameters are given via the Data property. What you probably want is: Channel: h323/ivar@192.168.0.153 MaxRetries: 2 RetryTime: 60 WaitTime: 30 Application: AGI Data: agi-test.agi stefan
Thanks Stefan - works like charm. -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Stefan Reuter Sent: 15. febr?ar 2005 00:27 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Can't run AGI for outbound call On Tue, 2005-02-15 at 00:07 +0000, ?var Ragnarsson wrote:> 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: > > the test.call file looks like this: > #Simple test call script. > #call my NetMeeting client > Channel: h323/ivar@192.168.0.153 > MaxRetries: 2 > RetryTime: 60 > WaitTime: 30 > Application: AGI(agi-test.agi) > Data: 1234[SNIP]> Feb 14 23:53:25 WARNING[7958]: pbx.c:4164 ast_pbx_run_app: No > such application 'AGI(agi-test.agi)'Asterisk is looking for an application called 'AGI(agi-test.agi)' and that one obviously does not exist. The Application property must only contain the name of the application, i.e. AGI. Any parameters are given via the Data property. What you probably want is: Channel: h323/ivar@192.168.0.153 MaxRetries: 2 RetryTime: 60 WaitTime: 30 Application: AGI Data: agi-test.agi stefan _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users