sgroulx
08-04-2008, 03:10 PM
Bonjour,
Dans mon scénario, je cherche à rediriger ver une extension spécifique si aucune touche a été pressé.
Mais je ne trouve pas comment.
Quelque a une idée??
merci
Sébas
######
<?xml version="1.0" encoding="UTF-8" ?>
- <vxml version="2.0">
- <form id="datetimeform">
- <object name="field1" classid="datetime">
- <filled>
- <!-- THIS IS WHERE YOU SET THE TIME AND DAYS OF THE WEEK
-->
- <!-- THIS WORKS ON GREATER THAN OR LESS THAN, NOT EQUAL TO
-->
- <!-- 8 = 8am and 18 = 6pm 1 is Sunday and 7 is Saturday
-->
- <!-- To set 8am to 5pm set datetime_hour = 7-17 NOT 8-17
-->
- <!-- To set eveyday datetime_wday = 0-8 or weekdays 1-7
-->
- <!-- dimanche
-->
- <if cond="datetime_wday == '1'">
- <if cond="datetime_hour = '11-16'">
<goto next="#menu_open_hours" />
</if>
</if>
- <!-- lundi a mercredi
-->
- <if cond="datetime_wday = '1-5'">
- <if cond="datetime_hour = '9-18'">
- <if cond="datetime_hour == '17'">
- <if cond="datetime_min > '30'">
<goto next="#menu_after_hours" />
</if>
</if>
<goto next="#menu_open_hours" />
</if>
</if>
- <!-- jeudi vendredi
-->
- <if cond="datetime_wday = '4-7'">
- <if cond="datetime_hour = '9-21'">
<goto next="#menu_open_hours" />
</if>
</if>
- <!-- samedi
-->
- <if cond="datetime_wday == '7'">
- <if cond="datetime_hour = '8-16'">
<goto next="#menu_open_hours" />
</if>
</if>
<goto next="#menu_after_hours" />
</filled>
</object>
</form>
- <form id="menu_after_hours">
- <block>
- <prompt bargein="true">
<audio src="ferme.wav" />
</prompt>
- <!-- <goto next="#mainform"/>
-->
</block>
<exit />
</form>
- <form id="menu_open_hours">
- <block>
- <!-- <prompt bargein="true"> <audio src="ouvert.wav" /> </prompt>
-->
<goto next="#mainform" />
</block>
<exit />
</form>
- <form id="mainform">
- <noinput count="3">
<assign name="field1" expr="'14'" />
<goto nextitem="field2" />
</noinput>
- <field name="field1" type="digits?length=2" modal="false">
- <prompt timeout="5s">
<audio src="ouvert.wav" />
</prompt>
<option dtmf="1" value="52" />
<option dtmf="2" value="53" />
<option dtmf="0" value="53" />
<link dtmf="#" next="#dirspell" />
- <filled>
<goto nextitem="field2" />
</filled>
</field>
- <object name="field2" classid="connect">
<param name="extension" expr="field1" />
- <filled>
- <prompt>
<audio src="timeover.wav" />
</prompt>
<exit />
</filled>
- <nomatch>
<goto nextitem="field1" />
</nomatch>
</object>
</form>
- <!-- spell form, contains main directory object inside
-->
- <form id="dirspell">
<link dtmf="*" next="#mainform" />
PAGE 16 27-Dec-06 Epygi Technologies Setting Up a Simple IVR on Quadro IP PBXs with VXML
- <object name="field1" classid="directory">
- <!-- roll param specifies whether directory object
-->
- <!-- should roll over the spelled entries or just wait for input to spell
-->
<param name="roll" expr="varRoll" />
- <prompt>
<audio src="pubdirspell.wav" />
</prompt>
- <nomatch>
- <!-- invalid input, cannot spell the name
-->
- <prompt>
<audio src="nomatch.wav" />
</prompt>
<reprompt />
</nomatch>
- <filled>
- <!-- spelling is complete
-->
- <!-- spelled extension and attached to it file should be stored
-->
<assign name="varExtension" expr="_extension" />
<assign name="varFilename" expr="_filename" />
<assign name="varRoll" expr="'false'" />
<goto next="#diraccept" />
</filled>
</object>
</form>
</vxml>
Dans mon scénario, je cherche à rediriger ver une extension spécifique si aucune touche a été pressé.
Mais je ne trouve pas comment.
Quelque a une idée??
merci
Sébas
######
<?xml version="1.0" encoding="UTF-8" ?>
- <vxml version="2.0">
- <form id="datetimeform">
- <object name="field1" classid="datetime">
- <filled>
- <!-- THIS IS WHERE YOU SET THE TIME AND DAYS OF THE WEEK
-->
- <!-- THIS WORKS ON GREATER THAN OR LESS THAN, NOT EQUAL TO
-->
- <!-- 8 = 8am and 18 = 6pm 1 is Sunday and 7 is Saturday
-->
- <!-- To set 8am to 5pm set datetime_hour = 7-17 NOT 8-17
-->
- <!-- To set eveyday datetime_wday = 0-8 or weekdays 1-7
-->
- <!-- dimanche
-->
- <if cond="datetime_wday == '1'">
- <if cond="datetime_hour = '11-16'">
<goto next="#menu_open_hours" />
</if>
</if>
- <!-- lundi a mercredi
-->
- <if cond="datetime_wday = '1-5'">
- <if cond="datetime_hour = '9-18'">
- <if cond="datetime_hour == '17'">
- <if cond="datetime_min > '30'">
<goto next="#menu_after_hours" />
</if>
</if>
<goto next="#menu_open_hours" />
</if>
</if>
- <!-- jeudi vendredi
-->
- <if cond="datetime_wday = '4-7'">
- <if cond="datetime_hour = '9-21'">
<goto next="#menu_open_hours" />
</if>
</if>
- <!-- samedi
-->
- <if cond="datetime_wday == '7'">
- <if cond="datetime_hour = '8-16'">
<goto next="#menu_open_hours" />
</if>
</if>
<goto next="#menu_after_hours" />
</filled>
</object>
</form>
- <form id="menu_after_hours">
- <block>
- <prompt bargein="true">
<audio src="ferme.wav" />
</prompt>
- <!-- <goto next="#mainform"/>
-->
</block>
<exit />
</form>
- <form id="menu_open_hours">
- <block>
- <!-- <prompt bargein="true"> <audio src="ouvert.wav" /> </prompt>
-->
<goto next="#mainform" />
</block>
<exit />
</form>
- <form id="mainform">
- <noinput count="3">
<assign name="field1" expr="'14'" />
<goto nextitem="field2" />
</noinput>
- <field name="field1" type="digits?length=2" modal="false">
- <prompt timeout="5s">
<audio src="ouvert.wav" />
</prompt>
<option dtmf="1" value="52" />
<option dtmf="2" value="53" />
<option dtmf="0" value="53" />
<link dtmf="#" next="#dirspell" />
- <filled>
<goto nextitem="field2" />
</filled>
</field>
- <object name="field2" classid="connect">
<param name="extension" expr="field1" />
- <filled>
- <prompt>
<audio src="timeover.wav" />
</prompt>
<exit />
</filled>
- <nomatch>
<goto nextitem="field1" />
</nomatch>
</object>
</form>
- <!-- spell form, contains main directory object inside
-->
- <form id="dirspell">
<link dtmf="*" next="#mainform" />
PAGE 16 27-Dec-06 Epygi Technologies Setting Up a Simple IVR on Quadro IP PBXs with VXML
- <object name="field1" classid="directory">
- <!-- roll param specifies whether directory object
-->
- <!-- should roll over the spelled entries or just wait for input to spell
-->
<param name="roll" expr="varRoll" />
- <prompt>
<audio src="pubdirspell.wav" />
</prompt>
- <nomatch>
- <!-- invalid input, cannot spell the name
-->
- <prompt>
<audio src="nomatch.wav" />
</prompt>
<reprompt />
</nomatch>
- <filled>
- <!-- spelling is complete
-->
- <!-- spelled extension and attached to it file should be stored
-->
<assign name="varExtension" expr="_extension" />
<assign name="varFilename" expr="_filename" />
<assign name="varRoll" expr="'false'" />
<goto next="#diraccept" />
</filled>
</object>
</form>
</vxml>