Page 1 of 1

Delay going from vxml form to another

Posted: Mon May 23, 2011 10:46 am
by rquant
I am having an issue with an almost 3 second delay going from vxml document to another vxml document.
Starting VXML Doc

Code: Select all

<form id="BeforeMessageEmptyForm">
        <block>
            <assign name="CurrentPage" expr="VxmlPage" />
            <assign name="CurrentForm" expr="'BeforeMessageEmptyForm'" />
            <script>returnPush("PresentMenu.vxml#ReadMessages")</script>
            <goto next="EmptyForm.vxml" />
        </block>
    </form>
Inside EmptyForm.vxml it will check grammar for a DTMF press, if no DTMF press it catches the noinput and continues.

Empty.vxml

Code: Select all

    
<form id="EmptyForm">
       <block>
            <assign name="CurrentPage" expr="VxmlPage" />
            <assign name="CurrentForm" expr="'EmptyForm'" />
        </block>
        <field name="MenuNextAction">
         <property name="timeout" value=".1s" />
            <property name="termchar" value="A" />
         <grammar src="menugrammar.grxml" type="application/srgs+xml"/>
            <catch event="noinput">
                <goto next="#Return" />
            </catch>
            <catch event="nomatch">
                <goto next="#Return" />
            </catch>
            <filled>
                <log expr="'Empty form picked up input of : ' + MenuNextAction" />
                <assign name="NextMenuChoice" expr="cleanMenuChoice(MenuNextAction)" />
                <log expr="'Got next menu choice of ' + NextMenuChoice" />
                <goto next="DetermineNextAction.vxml" />
            </filled>
        </field>
    </form>
    <form id="Return">
        <block>
            <assign name="CurrentPage" expr="VxmlPage" />
            <assign name="CurrentForm" expr="'Return'" />
            <goto expr="returnPop()" />
        </block>
    </form>
</vxml>
Not sure why its taking 3 seconds to continue on to "ReadMessages" vxml form. Wondering if you can take a look and determine the cause.

Thanks

Re: Delay going from vxml form to another

Posted: Mon May 23, 2011 1:42 pm
by support
Hi rquant,

Regarding this issue, we will need more information on why you are experiencing a 3 second delay when transitioning between your VXML documents as your code snippets make references to other VXML pages and variables.

One thing we noticed, however, is that the <script> tag in your starting VXML document makes mention of PresentMenu.vxml, so this may be why you're experiencing a delay before the <goto> goes to EmptyForm.vxml. Have you tried commenting out this <script> tag to see if it improves the delay time?

Regards,
Plum Support