login | register
Wed 09 of Jul, 2008 [05:13 UTC]

voip-info.org

Discuss [2] History

Asterisk cmd Vxml

Created by: i6net,Last modification on Fri 01 of Jun, 2007 [16:11 UTC]

Vxml()

Synopsis

Execute a VoiceXML URL (Based on the i6net VoiceXML browser).
The application use Asterisk internal interfaces (Prompt / DTMF / Record) .

Features :
- Audio (play and record gsm, wav, WAV files)
- Video (play and record h263, mp4 files)
- DTMF (bargein support)
- Transfer (only blind transfer supported)
- Text To Speech (supported by the browser)
- Accounts for hosting (ranges, url, stats)

Configuration file vxml.cfg.


Description

   Vxml(url)

Variables

If the variable VXML_URL has been set when vxml is run, the value of that variable will be used as the URL if not parameter is set to the application.
If the variable VXML_ID has been set when vxml is run, the VoiceXML session ID variable called “session.id” is set with this value (in the VoiceXML execution session context).
If the variable VXML_PARAM has been set when vxml is run, the value of that variable will be used as “session.param” (in the VoiceXML execution session context.

After execution, the VoiceXML result passed with the <exit> tag and the property ‘expr’ is accessible with the variable VXML_RESULT.

Example

[incoming]
exten => s,1,Answer 
exten => s,n,Wait(1)
exten => s,n,Vxml(http://vxml.i6net.com/index.vxml)
exten => s,n,Hangup

VoiceXML Examples

Download the VoiceXML examples from the i6net web site : (Download).
- Helloworld
- MP3 streaming
- Record and send by mail
- Games

Return codes

Always returns 0.


Asterisk | Configuration | The Dialplan - extensions.conf | Dialplan Commands


Comments

Comments Filter
222

333

by i6net, Friday 20 of July, 2007 [22:13:41 UTC]
Yes, that's right.
222

333Accessing VXML_ID and VXML_PARAM

by j_vb, Thursday 12 of July, 2007 [13:36:13 UTC]
Maybe this is clear for everyone.. But for me it took some time to figure this out.. :-)
So here my results:

In your vxml-page you can access VXML_ID and VXML_PARAM via the ECMAScript variables "session.telephone.id" and "session.telephone.param".