Antw: Re: [Asterisk-Dev] help needed

Hoai-Anh Ngo-Vi Hoai-Anh.Ngo-Vi at mcn-tele.com
Mon Jul 25 23:01:15 MST 2005


I've got the answer from Jared.
Asterisk is running via safe_asterisk and I can only get the output of my app on TTY9.
I use C (exactly C++) because the app should interoperate with MySQL and I have found some classes meet my needs.
Thanks for answer me.

>>> Tzafrir Cohen <tzafrir.cohen at xorcom.com> 26.07.2005  06.49 Uhr >>>
On Mon, Jul 25, 2005 at 04:34:33PM +0200, Hoai-Anh Ngo-Vi 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 

Why would you use C for that?

echo -e '#!/bin/sh\necho hello1\necho hello2>&2" >/usr/share/asterisk/agi-bin/test_agi
chmod +x /usr/share/asterisk/agi-bin/test_agi

> 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)

Write a wrapper strace script to have a better idea of what's happening:

echo -e '#!/bin/sh\nexec strace -o /tmp/trace ./a.out" >/usr/share/asterisk/agi-bin/trace_a.out
chmod +x /usr/share/asterisk/agi-bin/trace_a.out

exten => 336, 4, AGI(trace_a.out)

-- 
Tzafrir Cohen     icq#16849755  +972-50-7952406
tzafrir.cohen at xorcom.com  http://www.xorcom.com 
_______________________________________________
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