Results 1 to 3 of 3

Thread: Custom AA script to call relay, vm etc

  1. #1

    Default

    Hi,
    Has anyone created a custom AA script that allows authorized users to access the call relay options, vm system etc?

    Thanks.


  2. #2

    Default

    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
    ________
    Web shows
    Last edited by arsen; 08-20-2011 at 11:42 AM.

  3. #3

    Default

    Thanks for this.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Custom Logo
    By jcuellar in forum Suggestions and Feedback
    Replies: 9
    Last Post: 08-18-2011, 07:56 AM
  2. Call Queue Script
    By andy.collins in forum General Discussions
    Replies: 18
    Last Post: 10-18-2007, 05:05 AM
  3. Custom DNS settings for DHCP
    By stakano in forum 'How Do I' Questions
    Replies: 1
    Last Post: 08-26-2007, 03:10 PM
  4. Custom Greeting Format
    By warren in forum 'How Do I' Questions
    Replies: 1
    Last Post: 02-21-2007, 08:37 PM
  5. Call relay
    By voip advantage in forum Troubleshooting and Problems
    Replies: 1
    Last Post: 10-05-2006, 11:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •