[Asterisk-Users] Sample AGI Scripts in C needed.

Moises Silva moises.silva at gmail.com
Wed Apr 20 07:32:33 MST 2005


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 at 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 at 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"


More information about the asterisk-users mailing list