[Asterisk-Users] PHP/AGI Problem
Moises Silva
moises.silva at gmail.com
Wed May 25 11:10:35 MST 2005
what version of asterisk you are using? i had some problems with agi
until i upgrade to asterisk 1.0.7
if you run simple agi scripts works?
try using this 2, one is php, the other one is C, that will tell us if
the problem is the script you are using, php, or AGI itself...
#!/usr/bin/php -q
<?php
while(1)
{
$str = fread(STDIN, 80);
if ( $str == "\n" )
{
break;
}
}
fwrite(STDOUT,"SAY NUMBER 19 \"\"\n");
fread(STDIN, 80);
fwrite(STDOUT,"SAY NUMBER 82 \"\"\n");
fread(STDIN, 80);
die();
?>
#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);
}
On 5/25/05, Jon Farmer <viperdude_uk at yahoo.co.uk> wrote:
>
> --- Jay Milk <jay at skimmilk.net> wrote:
> > Why are you using DeadAGI? Use AGI or EAGI instead,
> > unless you actually
> > want to run on a dead-channel.
>
> I used DeadAGI just to see if it had any different
> behaviour in relation to my proplem. I get the same
> results with DeadAGI EAGI and AGI.
>
> Regards
>
> Jon
>
>
> Jon Farmer
> Skype: viperdude_uk
>
>
>
>
>
> ___________________________________________________________
> Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
> _______________________________________________
> 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