Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <vxml version="2.0" base="flash0:/test/test.vxml">
- <!-- Time is in UTC -->
- <!-- Day of week: 0 - sunday, 1 - monday ... 6 - sunday -->
- <var name="VAR_Hour" expr="new Date().getHours()"/>
- <var name="VAR_Day" expr="new Date().getDay()"/>
- <!-- Time condition -->
- <form id="IVR_TimeCondition">
- <block>
- <if cond="5 <= VAR_Hour && VAR_Hour < 14 && 0 < VAR_Day && VAR_Day < 6">
- <goto next="#IVR_Business" />
- <else />
- <goto next="#IVR_NonBusiness" />
- </if>
- </block>
- </form>
- <!-- Non business hours -->
- <form id="IVR_NonBusiness">
- <block>
- <prompt><audio src="flash0:/test/ivr2.wav"/></prompt>
- </block>
- </form>
- <!-- Business hours -->
- <form id="IVR_Business">
- <block>
- <prompt><audio src="flash0:/test/ivr1.wav"/></prompt>
- </block>
- <transfer name="mycall" transferaudio="flash0:/test/music.wav" bridge="false" dest="phone://123">
- <filled>
- <log>TRANSFER RETURNED: <value expr="mycall"/></log>
- </filled>
- </transfer>
- </form>
- </vxml>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement