Results 1 to 2 of 2

Thread: can’t get my ivr script to work.

  1. #1

    Default

    Hello there,

    I'm trying to do a not so difficult IVR. But after a lot of tries i can't even get the first menu to work. There's surely something i missed. Here's the first part of it.

    <?xml version="1.0" encoding="UTF-8"?>
    <vxml version="2.0">
    <form id="mainmenu">
    <noinput count="1">
    <goto next="#frenchext"/>
    </noinput>
    <field name="languageChoose" type="digits?length=1" modal="true">
    <link dtmf="9" next="#englishext"/>
    <prompt bargein="true" timeout="10s">
    <audio src="bienvenue.wav" />
    </prompt>
    <filled>
    <goto nextitem="choiceEnglish"/>
    </filled>
    </field>
    <object name="choiceEnglish" classid="connect">
    <param name="extension" expr="languageChoose"/>
    <filled>
    <prompt> <audio src="timeover.wav" /> </prompt>
    <exit/>
    </filled>
    <nomatch>
    <goto next="#frenchext"/>
    </nomatch>
    </object>
    </form>
    <form id="frenchext">
    <field name="french_ext" type="digits?length=3" modal="false">
    <noinput count="1">
    <goto next="#french_menu"/>
    </noinput>
    <prompt timeout="5s">
    <audio src="510_choix.wav" />
    </prompt>
    <option dtmf="779" value="79" />
    <option dtmf="778" value="78" />
    <option dtmf="777" value="77" />
    <option dtmf="776" value="76" />
    <filled>
    <goto nextitem="transfertToExtFr"/>
    </filled>
    </field>
    <object name="transfertToExtFr" classid="connect">
    <param name="extension" expr="french_ext"/>
    <filled>
    <prompt> <audio src="timeover.wav" /> </prompt>
    <exit/>
    </filled>
    <nomatch>
    <goto nextitem="french_ext"/>
    </nomatch>
    </object>
    </form>
    <form id="englishext">
    <noinput count="1">
    <goto next="#english_menu"/>
    </noinput>
    <field name="english_ext" type="digits?length=3" modal="false">
    <prompt timeout="5s">
    <audio src="english_ext.wav" />
    </prompt>
    <option dtmf="779" value="79" />
    <option dtmf="778" value="78" />
    <option dtmf="777" value="77" />
    <option dtmf="776" value="76" />
    <filled>
    <goto nextitem="transfertToExtEn"/>
    </filled>
    </field>
    <object name="transfertToExtEn" classid="connect">
    <param name="extension" expr="english_ext"/>
    <filled>
    <prompt> <audio src="timeover.wav" /> </prompt>
    <exit/>
    </filled>
    <nomatch>
    <goto nextitem="english_ext"/>
    </nomatch>
    </object>
    </form>
    </vxml>

    When I get in, i hear the bienvenue.wav message and no matter what i press or do not press after that i get disconnected. The first noinput doesn't bring me to the french extension menu and the 9 doesn't bring me to the english extension menu.

    Can someone point me out what i'm doing wrong.

    Thank you


  2. #2

    Default

    Hi,
    Generally your script seems to be correct, except for
    <noinput> event handler in<field> named french_ext.
    So event
    handlers like <noinput>, <nomatch>, <filled> should be placed
    after the initial <prompt> element of <field>.
    <form
    id="frenchext">
    <field name="french_ext" type="digits?length=3"
    modal="false">
    <prompt timeout="5s">

    <audio src="510_choix.wav" />
    </prompt>

    <option dtmf="779" value="79" />
    <option dtmf="778"
    value="78" />
    <option dtmf="777" value="77" />

    <option dtmf="776" value="76" />

    <filled>
    <goto
    nextitem="transfertToExtFr"/>
    </filled>

    <noinput count="1">
    <goto
    next="#french_menu"/>
    </noinput>

    </field>
    <object name="transfertToExtFr"
    classid="connect">
    <param name="extension"
    expr="french_ext"/>
    <filled>

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

    <exit/>
    </filled>

    <nomatch>
    <goto nextitem="french_ext"/>

    </nomatch>
    </object>

    </form>

    From the other hand, I guess that initial filed should
    be
    <field name="languageChoose" type="digits?length=2"
    modal="false">

    Hope it'll help.

    ________
    Honda cr125m
    ________
    Prilosec Lawsuit Settlements
    Last edited by arsen; 08-20-2011 at 11:42 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Quadro16x & Bogen TPU-100B will it work?
    By todash in forum 'How Do I' Questions
    Replies: 1
    Last Post: 04-22-2007, 06:44 PM
  2. XML script HELP
    By alfredp in forum VXML Scripting on Quadro
    Replies: 1
    Last Post: 03-05-2007, 07:12 AM
  3. Quadro, X-lite - does presence work?
    By rhysw in forum 'How Do I' Questions
    Replies: 1
    Last Post: 02-13-2007, 10:14 PM
  4. port forwarding don?t work - SOLVED
    By ciasulamericana in forum Troubleshooting and Problems
    Replies: 1
    Last Post: 10-20-2006, 05:04 AM
  5. STUN DOESN?T WORK VERY WELL
    By nortex in forum Tips and Tricks
    Replies: 3
    Last Post: 08-16-2006, 01:25 PM

Posting Permissions

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