PDA

View Full Version : Custom AA script to call relay, vm etc



threebit
08-13-2006, 01:37 PM
Hi,
Has anyone created a custom AA script that allows authorized users to access the call relay options, vm system etc?

Thanks.

arsen
08-20-2006, 01:48 PM
Hi,
find bellow
two sample vxml scripts which provide access to call relay and vm respectively.
Both scripts authorizes users at the first. You can combine this scripts into
more complex one by inserting simple menu which should contain call relay and vm
choices and goes just after authorization.

1)callrelay

<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.0">
<form id="loginform">
<field name="field1" type="digits">
<prompt timeout="5s"> <audio src="attusername.wav" /> </prompt>
<filled>
<goto nextitem="field2"/>
</filled>
<noinput count="3">
<prompt> <audio src="timeover.wav" /> </prompt>
<exit/>
</noinput>
</field>
<field name="field2" type="digits">
<prompt timeout="5s"> <audio src="authmessage.wav" /> </prompt>
<filled>
<goto nextitem="field3"/>
</filled>
<noinput count="3">
<prompt> <audio src="timeover.wav" /> </prompt>
<exit/>
</noinput>
</field>
<object name="field3" classid="checklogin">
<param name="extension" expr="field1"/>
<param name="password" expr="field2"/>
<nomatch>
<prompt> <audio src="attinvlogin.wav" /> </prompt>
<goto nextitem="field1"/>
</nomatch>
<nomatch count="3">
<prompt> <audio src="timeover.wav" /> </prompt>
<exit/>
</nomatch>
<filled>
<goto next="#callrelayform"/>
</filled>
</object>
</form>

<form id="callrelayform">
<field name="field1" type="digits">
<prompt timeout="5s"> <audio src="attdial.wav" /> </prompt>
<filled>
<goto nextitem="field2"/>
</filled>
<noinput count="3">
<prompt> <audio src="timeover.wav" /> </prompt>
<exit/>
</noinput>
</field>
<object name="field2" classid="dial">
<param name="pattern" expr="field1"/>
<filled>
<exit/>
</filled>
<nomatch>
<goto nextitem="field1"/>
</nomatch>
</object>
</form>
</vxml>


2) vm

<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.0">
<form id="vmform">
<block>
<prompt> <audio src="welcome.wav" /> </prompt>
<goto nextitem="field1"/>
</block>
<field name="field1" type="digits">
<prompt timeout="5s"> <audio src="attusername.wav" /> </prompt>
<filled>
<goto nextitem="field2"/>
</filled>
<noinput count="3">
<prompt> <audio src="timeover.wav" /> </prompt>
<exit/>
</noinput>
</field>
<field name="field2" type="digits">
<prompt timeout="5s"> <audio src="authmessage.wav" /> </prompt>
<filled>
<goto nextitem="field3"/>
</filled>
<noinput count="3">
<prompt> <audio src="timeover.wav" /> </prompt>
<exit/>
</noinput>
</field>
<object name="field3" classid="checklogin">
<param name="extension" expr="field1"/>
<param name="password" expr="field2"/>
<nomatch>
<prompt> <audio src="attinvlogin.wav" /> </prompt>
<goto nextitem="field1"/>
</nomatch>
<nomatch count="3">
<prompt> <audio src="timeover.wav" /> </prompt>
<exit/>
</nomatch>
<filled>
<goto nextitem="field4"/>
</filled>
</object>
<object name="field4" classid="service">
<param name="name" expr="'vm'"/>
</object>
</form>
</vxml>



________
Expert Insurance (http://xpertinsurance.com/)
________
Web shows (http://livesexwebshows.com/)

threebit
08-21-2006, 06:41 AM
Thanks for this.