Here you have a sample that i used to test that agi was doing well.
#include <stdio.h>
main()
{
char line[80];
setlinebuf(stdout);
setlinebuf(stderr);
while (1)
{
fgets(line,80,stdin);
if ( strlen(line) <= 1 )
{
break;
}
}
printf("SAY NUMBER 55 \"\"\n");
fgets(line,80,stdin);
printf("SAY NUMBER 66 \"\"\n");
fgets(line,80,stdin);
}
Good look.
On 4/20/05, Bharat M. Sarvan <bharat.sarvan@ezzibpo.com>
wrote:>
>
>
> Hello Everybody,
>
> Could anybody please send me sample AGI scripts in
> C.? I was looking forward to code AGI scripts in C. It would be very kind
> enough if you do the needful.
>
>
>
>
>
>
>
>
>
>
>
> Regards,
>
> Bharat M. Sarvan
>
> EZZI BPO Pvt Ltd.,
>
> C2-7, 2nd Floor, Bramha Estate,
>
> NIBM Junction, Khondwa,
>
> PUNE ? 410048.
>
>
> _______________________________________________
> 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
>
>
--
"Su nombre es GNU/Linux, no solamente Linux, mas info en
http://www.gnu.org"