[Asterisk-Dev] PHP AGI - seems to ignore anything but EXEC

Terence Parker terence at parker.com.hk
Sun May 9 19:30:56 MST 2004


I am attempting to write a PHP AGI application.... but seem to be having a
few problems.

The script executes properly and I am able to do things such as "EXEC
FESTIVAL 'Testing 1 2 3'" - but anything that doesn't have EXEC doesn't seem
to work. I don't quite understand why since surely EXEC is an AGI command
just like all the other supported ones?

For example:

fputs ($stdout, "EXEC SayDigits 12345\n");        WORKS
fputs ($stdout, "SAY DIGITS 12345 78#\n");       DOES NOT WORK.

- and I can't figure out why.

What I actually need to do is receive a string of DTMF from the caller but
when I send the WAIT FOR DIGIT command nothing happens. So I got suspiscious
and tried other commands - indeed, nothing works. "SAY NUMBER" doesn't
either - I have to use EXEC for that too. Except, there is no CLI command I
can use EXEC for is there for receiving DTMF?

Thanks for any help.

Terence





More information about the asterisk-dev mailing list