Forums  

Go Back   Forums > Quadro IP-PBX Products > Troubleshooting and Problems
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 03-04-2007, 02:21 PM   #1
ivscorp
Junior Member
 
Join Date: Jun 2006
Location: Plano
Posts: 15
Default

Anyone know where i can get a good out of hours script for a Quadro 4X. We need to transfer to AA after 6:00 PM and before 8:00AM. Can this be done in routing, if so how?
ivscorp is offline   Reply With Quote
Old 03-04-2007, 06:45 PM   #2
alfredp
Junior Member
 
Join Date: Jan 2007
Posts: 28
Default



Hi,


I'm playing around with a script which was posted on this forum sometime ago. I'm using it for a 2x, but should work on 4x as well. You may need to modify teh script to suite. good luck
<?xml version="1.0" encoding="UTF-8" ?>

- <vxml version="2.0">

- <!-- Written by Martin Brien of Megatron Pty Ltd &amp;nb sp; &amp;nb sp; -->
f(clean);

- <!-- martin@megatron.com.au http://www.megatron.com.au -->
f(clean);

- <!-- Freeware on the condition that this copyright statement remains -->
f(clean);

- <!-- (c) Copyright 2006 &amp;n bsp; VoIP: 30630600@epygi.com -->
f(clean);

- <!-- ### REQUIRES VERSION 3.1.xx or higher of Quadro firmware ### -->
f(clean);

- <!-- Limitation in this Version 1.00 is the START and END TIMES can -->
f(clean);

- <!-- only be set to closest HOUR not minutes e.g. 5.00 pm NOT 5:30pm -->
f(clean);


- <form id="datetimeform">


- <object name="field1" classid="datetime">


- <filled>

- <!-- THIS IS WHERE YOU SET THE TIME AND DAYS OF THE WEEK -->
f(clean);

- <!-- THIS WORKS ON GREATER THAN OR LESS THAN, NOT EQUAL TO -->
f(clean);

- <!-- 8 = 8am and 18 = 6pm 1 is Sunday and 7 is Saturday -->
f(clean);

- <!-- To set 8am to 5pm set datetime_hour = 7-17 NOT 8-17 -->
f(clean);

- <!-- To set eveyday datetime_wday = 0-8 or weekdays 1-7 -->
f(clean);

- <!-- START TIME -->
f(clean);


- <if cond="datetime_hour > '7'">

- <!-- END TIME -->
f(clean);


- <if cond="datetime_hour < '17'">

- <!-- DAYS OF THE WEEK -->
f(clean);


- <if cond="datetime_wday > '1'">


- <if cond="datetime_wday < '7'">


<goto next="#menu_business_hours" />
</if>
</if>
</if>
</if>

<goto next="#menu_after_hours" />
</filled>
</object>
</form>
- <!-- -->
f(clean);

- <!-- Business Hours Menu -->
f(clean);

- <!-- -->
f(clean);


- <form id="menu_business_hours">


- <noinput count="2">

- <!-- expr="'##'" where ## = extension number for NO INPUT -->
f(clean);


<assign name="field1" expr="'31'" />

<goto nextitem="field2" />
</noinput>

- <block>

- <!-- welcome.wav is the first greeting audio file in Business Hours -->
f(clean);


- <prompt bargein="true">


<audio src="welcome.wav" />
</prompt>

<goto nextitem="field1" />
</block>

- <field name="field1" type="digits?length=1" modal="false">

- <!-- INPUT OPTION(S) with audio file played after input, -->
f(clean);

- <!-- Pass to subroutine "option?", -->
f(clean);


<link dtmf="1" next="#option1" />

<link dtmf="2" next="#option2" />
- <!-- repeat_welcome.wav is the REPEAT of just the available options with intial greeting -->
f(clean);


- <prompt timeout="5s">


<audio src="repeat_welcome.wav" />
</prompt>
- <!-- INPUT OPTION(S) where value="##" is the extension to transferred to -->
f(clean);


<option dtmf="3" value="33" />

- <filled>


<goto nextitem="field2" />
</filled>
</field>

- <object name="field2" classid="connect">


<param name="extension" expr="field1" />

- <filled>

- <!-- blank.wav to give delay between welcome message and repeat_welcome -->
f(clean);


- <prompt>


<audio src="blank.wav" />
</prompt>

<exit />
</filled>

- <nomatch>


<goto nextitem="field1" />
</nomatch>
</object>
</form>
- <!-- -->
f(clean);

- <!-- After Hours Menu -->
f(clean);

- <!-- -->
f(clean);


- <form id="menu_after_hours">

- <!-- expr="'##'" where ## = extension number for extension for AFTER HOURS VOICE MAIL -->
f(clean);

- <!-- Setup virtual extension with voice mail/after hours greeting and option to leave message -->
f(clean);

-->

- <object name="tranfer" classid="connect">


<param name="extension" expr="'60'" />
</object>

<exit />
</form>
- <!-- -->
f(clean);

- <!-- Menu Options routines -->
f(clean);

- <!-- -->
f(clean);


- <form id="option1">


- <noinput count="1">


<goto nextitem="option11" />
</noinput>

- <block>


- <prompt bargein="true">

- <!-- option1.wav is play before being transfered to defined extension -->
f(clean);


<audio src="afterhours.wav" />
</prompt>
</block>

<goto nextitem="option11" />

- <object name="option11" classid="connect">

- <!-- expr="'##'" is the extension to transferred to -->
f(clean);


<param name="extension" expr="'31'" />
</object>

<exit />
</form>

- <form id="option2">


- <noinput count="1">


<goto nextitem="option21" />
</noinput>

- <block>


- <prompt bargein="true">

- <!-- option2.wav is play before being transfered to defined extension -->
f(clean);


<audio src="option2.wav" />
</prompt>
</block>

<goto nextitem="option21" />

- <object name="option21" classid="connect">

- <!-- expr="'##'" is the extension to transferred to -->
f(clean);


<param name="extension" expr="'32'" />
</object>

<exit />
</form>
</vxml>
alfredp is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extending After Hours times alfredp VXML Scripting on Quadro 4 09-26-2007 07:41 PM
Out of hours and bilingual IVR Sparxnet VXML Scripting on Quadro 1 05-08-2007 12:02 AM
Out of Hours Script ivscorp VXML Scripting on Quadro 1 04-12-2007 08:54 PM
Out of hours sharkbyte VXML Scripting on Quadro 4 09-05-2006 06:11 AM
Out of hours sharkbyte 'How Do I' Questions 1 08-11-2006 03:51 AM


All times are GMT +1. The time now is 11:22 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
© Copyright 2013 Epygi Technologies LTD