installation_guide:configuration_file_voximal:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
installation_guide:configuration_file_voximal:start [2016/01/18 21:57] borjainstallation_guide:configuration_file_voximal:start [2016/10/03 07:48] – [General Section [general]] borja
Line 139: Line 139:
 |audiowait | file | empty | Plays this file and waits for a free VoiceXML channel. | |audiowait | file | empty | Plays this file and waits for a free VoiceXML channel. |
 |mrcpsynthparams | string | empty | Add extra parameters for the MRCPsynth application (volume, keep session...) | |mrcpsynthparams | string | empty | Add extra parameters for the MRCPsynth application (volume, keep session...) |
 +|console | yes/no| empty | Enable the console log output of the interpreter, when you launch Asterisk with the console mode (-c), you can mix Asterisk and Voximal output logs on the console. |
  
 =====  License Section [license] ===== =====  License Section [license] =====
Line 269: Line 270:
 |split |  |  |  | |split |  |  |  |
  
-=====  Configuration example ===== 
- 
-Example: 
- 
-<code> 
-; VoiceXML Configuration 
-; 
-[general] 
-wav_codec=gsm 
-videosilence=;silence 
-audiosilence=;silence 
-debug=4 
-video=yes 
- 
-[license] 
-max=100 
-key=… 
- 
-[account1] 
-name=Test1 
-url=http://localhost/vxml/index.php 
-max=1 
- 
-[account2] 
-name=Test2 
-url=http://localhost/vxml/demo/index.vxml 
-max=3 
-dialformat=SIP/%s@ovh-out 
-</code> 
- 
-To assign an extension to a VXML account just follow this example, where we are assigning the previous account to three extensions number in your /etc/asterisk/extension.conf asterisk: 
- 
-<code> 
-[default] 
- 
-exten => 981001001,1,Voximal(Test1) 
-exten => 981001002,1,Voximal(Test2) 
-exten => 981001003,1,Voximal(Test3) 
-</code> 
- 
-NOTE: 
-When you update your voximal.conf file, remember to refresh configuration making a command “voximal reload” in your CLI*> prompt. If you have added SIP, PRI or new extensions you must launch “sip reload”, “extensions reload”, “dialplan reload” or reload asterisk/voximal processes. Use the command “voximal show accounts” to dump your accounts. 
- 
-<code> 
-CLI*> diaplan reload 
-CLI*> voximal reload 
-CLI*> voximal show accounts 
-</code> 
- 
-Example: 
- 
-Add extensions to the Asterisk dial plan /etc/asterisk/extensions.conf, if you want to set the URL in the dialplan: 
- 
-<code> 
-exten => 888,1,Answer 
-exten => 888,n,Wait(3) 
-exten => 888,n,Voximal(file:///root/example.vxml) 
-exten => 888,n,Hangup 
-</code> 
- 
-You can create and edit the file /root/example.vxml with the GNU text editor, VI, for example. 
- 
-This example will work if you have text-to-speech configured.  If not, use a pre-recorded wav or gsm file to replace the “Hello world!” text by an <audio> tag.  For more information, see the format extensions supported by Asterisk. 
- 
-<code> 
-<?xml version="1.0"?> 
-<vxml version = "2.0" xmlns="http://www.w3.org/2001/vxml"> 
- <form> 
-  <block><audio src="hello.wav"/></block> 
- </form> 
-</vxml> 
-</code> 
- 
-Save the file in the same directory as the VoiceXML script (relative reference in this example). 
-Reload the extensions configuration with: 
- 
-<code> 
-*CLI> extensions reload 
-</code> 
- 
-Call the service by calling: 
- 
-<code> 
-SIP:888@<your server address> 
-</code> 
  
  • installation_guide/configuration_file_voximal/start.txt
  • Last modified: 2016/12/02 15:20
  • by borja