[Asterisk-Dev] help needed

Michael K. Rodriguez michael at voipalliance.net
Mon Jul 25 08:40:54 MST 2005


I had a similar problem when asterisk executed a perl AGI and exiting with
0. Turns out I had a syntax problem.

I would be helpful if the script was listed as well.

-Michael




On 7/25/05 9:34 AM, "Hoai-Anh Ngo-Vi" <Hoai-Anh.Ngo-Vi at mcn-tele.com> wrote:

> Dear all
> 
> I am using Asterisk 1.0.7 on Debian Sarge with Kernel 2.6.8-2-686.
> 
> The Problem: I've written a C programm and placed it into
> /usr/share/asterisk/agi-bin, where the AGI scripts should be placed.
> Extension.conf edited as follows:
> ...
> exten => 336, 4, AGI(a.out)
> 
> When dialing 336 I've got those messages from Asterisk:
> ...
>     -- Executing AGI("SIP/hoaianh-09f2", "a.out") in new stack
>     -- Launched AGI Script /usr/share/asterisk/agi-bin/a.out
>     -- AGI Script a.out completed, returning 0
> ...
> 
> But Asterisk didn't really launch that a.out programm (I didn't get any
> message via CLI> console, that programm would have put some messages into CLI>
> console via stderr if it ran correctly).
> 
> Any idea?
> 
> Thanks for help.
> 
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev





More information about the asterisk-dev mailing list