ftocc

Sending DTMF keypresses to a web page

bangstudios
Posts: 2
Member Since:
2008-05-02

Hey folks!

Although I'm admittedly a bit of a trixbox newbie, I cannot for the life of me figure out how to set up a pair of DTMF requests and then forward the decoded DTMF entries to a web page (either by GET or POST). Is this something that trixbox can support? If so, any assistance anyone could provide would be GREATLY appreciated!

Thanks so much in advance,

John



revco
Posts: 516
Member Since:
2006-09-04
The easiest way to do this

The easiest way to do this would be to dump the DTMF data into a MySQL database backend and then build a web based application that will dip into that data and display it on a webpage in real time. I can't go into it in detail, as something like this is rather complicated, but you'll need to get familiar with custom Asterisk scripting in order to accomplish it. You'll also need to be familiar with web coding that will pull data from a MySQL database.



niel_hirjee
Posts: 46
Member Since:
2007-05-01
a bit like google local (beta) validation

Google local beta does this very neatly - if you add your business info to Google local, it displays a four digit validation code on a web page; then immediately after that Google phones you for verification and prompts you to enter the four digit code via the phone keypad, if your entry is correct Google reflects that in real time on the web page. Is this broadly what you were looking for?

revco is correct in that one can get similar functionality out of trixbox with some php - agi scripting in conjunction with a database such as MySQL.

If you want to see a bit of realtime asterisk - php interaction on a web page, visit http://www.niht-india.com, click on any one of the courses, enter your phone number and enable the 'call me now' check box. You will see the stages of the progress of the call on the web page in real time.



bangstudios
Posts: 2
Member Since:
2008-05-02
Hi folks, Thanks so much for

Hi folks,

Thanks so much for the quick responses!

Niel, that's the right idea, but in reverse: I'd like to prompt a caller for a unique UID and password over voice, capture the two sets of DTMF, extract the DTMF and pass both fields as text to a PHP page running on a web server somewhere for further processing.

Thanks again,

John



niel_hirjee
Posts: 46
Member Since:
2007-05-01
John, you are welcome.The

John, you are welcome.

The same principle applies, nevertheless; you need some php - agi scripting along the lines of:

http://linux.com/feature/128386



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.