PDA

View Full Version : Script need



Synertic
02-18-2008, 11:15 AM
Hi all, I need a script based on open hours to route to different AA

example:

all inbound call is route to AA 00 (the script needed is in this AA)
if business is open, route call to AA 2000 (Monday to Friday 8:30am to 12pm, 1pm to 6pm)
if business is close route call to AA 2001

threebit
02-24-2008, 03:51 PM
Hi,

Below is a scenario applicable to your setup.

It was created by the 3Bit Quadro AA Creator which is still in a beta version.

Thanks

3Bit Support

------------------------------------------------------------------------

<vxml version="2.0">
<!-- Made By the 3Bit Solutions Quadro AA VXML Creator -->
<form id="DocumentFlow">
<object name="DocumentFlowAction1" classid="datetime">
<filled>
<if cond="datetime_wday == '1'">
<goto next="#OutsideBusinessHours" />
<elseif cond="datetime_wday == '7'" />
<goto next="#OutsideBusinessHours" />
<else />
<if cond="datetime_hour &lt; '9'">
<goto next="#OutsideBusinessHours" />
<elseif cond="datetime_hour &gt; '16'" />
<goto next="#OutsideBusinessHours" />
<else />
<goto next="#InsideBusinessHours" />
</if>
</if>
</filled>
</object>
</form>
<form id="InsideBusinessHours">
<block name="InsideBusinessHoursAction1">
<prompt bargein="false" timeout="5s" count="1">
<audio src="welcome.wav" />
</prompt>
</block>
<block name="InsideBusinessHoursAction2">
<goto next="#InsideMenu" />
</block>
</form>
<form id="InsideMenu">
<var name="varInsideMenuDial" expr="''" />
<noinput>
<assign name="varInsideMenuDial" expr="'20'" />
<goto nextitem="dialInsideMenu" />
</noinput>
<field name="fieldInsideMenu">
<prompt bargein="true" timeout="5s" count="1">
<audio src="optionsInside.wav" />
</prompt>
<option dtmf="1" value="11" />
<option dtmf="2" value="12" />
<option dtmf="3" value="13" />
<filled>
<assign name="varInsideMenuDial" expr="fieldInsideMenu" />
<goto nextitem="dialInsideMenu" />
</filled>
</field>
<object classid="dial" name="dialInsideMenu">
<param name="pattern" expr="varInsideMenuDial" />
</object>
</form>
<form id="OutsideBusinessHours">
<block name="OutsideBusinessHoursAction1">
<prompt bargein="false" timeout="5s" count="1">
<audio src="businesshours.wav" />
</prompt>
</block>
<block name="OutsideBusinessHoursAction2">
<goto next="#OutsideMenu" />
</block>
</form>
<form id="OutsideMenu">
<var name="varOutsideMenuDial" expr="'20'" />
<field name="fieldOutsideMenu">
<prompt bargein="true" timeout="5s" count="1">
<audio src="optionsOutside.wav" />
</prompt>
<option dtmf="1" value="11" />
<option dtmf="2" value="12" />
<option dtmf="3" value="13" />
<filled>
<assign name="varOutsideMenuDial" expr="fieldOutsideMenu" />
<goto nextitem="dialOutsideMenu" />
</filled>
</field>
<object classid="dial" name="dialOutsideMenu">
<param name="pattern" expr="varOutsideMenuDial" />
</object>
</form>
</vxml>

Synertic
02-25-2008, 08:25 AM
I'm not a specialist in VXML but this script not meet my requirement.

I need the original script of the quadro with the # to access to the directory, with direct dial to extention and the open and close business hours message