[asterisk-users] AGI and php simple example

2006-12-17 Thread nik600

Hi

can you give a simple example of php and AGI script?

I've read http://www.voip-info.org/wiki-Asterisk+AGI+php but i can't
understand how to play sounds and read DTMF digits...

For example, if i will write the following script directly from php:

- play a welcome message
- play a recorded message (For example: Digit a number:)
- read the DTMF digits
- if the number digited is greater than 5
 - play a recorded message (You have digit a number greater than 5)
 else
 - play a recorded message (You have digit a number smaller than 5)
- hangup

Is it possible to write a php script that do these things?

How?

Thanks
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] AGI and php simple example

2006-12-17 Thread Time Bandit

I've read http://www.voip-info.org/wiki-Asterisk+AGI+php but i can't
understand how to play sounds and read DTMF digits...


Have a look at this : http://phpagi.sourceforge.net/

hth
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users