Show pageOld revisionsBacklinksExport to PDFBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ===== Create your first VoiceXML application ===== To configure your first VoiceXML application inside Asterisk, just edit your dialpan (extensions.conf): <code> # cd /etc/asterisk # vi extensions.conf </code> Add a new extension in your dialplan (/etc/asterisk/extensions.conf ) like: <code> exten => 888,1,Answer exten => 888,2,Wait(3) exten => 888,3,Vxml(http://vxml.i6net.com/index.vxml) exten => 888,4,Hangup exten => 999,1,Answer exten => 999,2,Wait(3) exten => 999,3,Vxml(file:///tmp/helloworld2.vxml) exten => 999,4,Hangup </code> Install first demo VoiceXML examples programs in your /tmp directory: <code> helloworld2.vxml ; 1st program with WAV file access says “Hello World!” </code> Please ensure you have reloaded your extensions in Asterisk using the prompt command: <code> *CLI> extensions reload </code> Call the service by calling : <code> SIP:888@<your server IP address> SIP:999@<your server IP address> </code> The best way to manage VoiceXML applications is to use the VoiceXML account configuration. You can catch the errors generated from the Asterisk Vxml application (error is in the variable VXML_ERROR) to propose an alternative call processing from the Asterisk dialplan. Example : <code> exten => _X.,n,Vxml() exten => _X.,n,NoOp(${VXML_ERROR}) exten => _X.,n,GotoIf($["${VXML_ERROR}" == ""]?hangup) exten => _X.,n,Busy() exten => _X.,n(hangup),Hangup() </code> legacy/vxi_developer_guide/voicexml_first_application/start.txt Last modified: 2017/07/28 23:53by javier