Page 1 of 1

Lag between two options

Posted: Fri Apr 20, 2012 10:27 am
by rahul.rai
Hi there,

In VXML below, there is big lag between two stages :
First stage is Entering 16 Digits Card number
Second Stage is entering Date of birth in ddMMyyyy format

I do not know why there is lag between these two stages,


<?xml version="1.0" ?>
- <vxml version="2.0" application="rootvxml.aspx">
- <link event="star">
<grammar type="application/x-jsgf" mode="dtmf">"*"</grammar>
</link>
- <catch event="star">
<goto next="TransfertoCC.aspx" />
</catch>
- <form id="Login">
- <field name="PAN" type="digits?length=16">
<prompt timeout="4s">Please enter your 16 digit card Number, or press Star for lost and Stolen. or If you are calling to purchase a card then please press Hash</prompt>
- <noinput>
I did not get all the digits
<reprompt />
</noinput>
- <nomatch>
Enter the 16 digits of your card
<reprompt />
</nomatch>
</field>
- <field name="DOB" type="digits?minlength=8;maxlength=8">
<prompt>Please enter your date of birth, as Day, Day, Month, Month, Year, Year, Year, Year. For example, the 30th of may 1970 would be, 3 0 , 0 5 , 1 9 7 0</prompt>
- <filled>
<prompt>Checking your details. Please wait.</prompt>
<submit next="login.aspx" namelist="PAN DOB" />
</filled>
- <noinput>
I did not get the date
<reprompt />
</noinput>
- <nomatch>
The date was not in the correct format
<reprompt />
</nomatch>
</field>
</form>
</vxml>


thanks,
Rahul

Re: Lag between two options

Posted: Fri Apr 20, 2012 1:10 pm
by support
Hi Rahul,

Since you know the max number of digits for your PAN and DOB fields, we recommend using the termmaxdigits property like this:

Code: Select all

<property name="termmaxdigits" value="true"/>
You can either put this at the beginning of your form or in your root document, so it will apply throughout your application. This forces the application to stop listening for user input once the maximum number of digits as been entered. Also for DOB, you can simply define its type like this:

Code: Select all

<field name="DOB" type="digits?length=8">
If this does not help, could you also post your rootvxml.aspx? There might be some global grammars that are causing the lag.

Regards,
Plum Support

Re: Lag between two options

Posted: Mon Apr 23, 2012 8:08 am
by rahul.rai
Hi Support,

I have made all these changes but still there is a problem, I am providing you my root vxml below:
<?xml version="1.0" ?>
<vxml version="2.0" xml:lang="en-GB">
<property name="interdigittimeout" value="7s" />
<property name="voicename" value="Daniel" />
<property name="sensitivity" value="0" />
<property name="inputmodes" value="dtmf" />
<property name="termmaxdigits" value="true" />
</vxml>

please let me know if I am doing something wrong in it.

thanks,
Rahul

Re: Lag between two options

Posted: Mon Apr 23, 2012 10:53 am
by support
Hi Rahul,

The current delays are being caused by the interdigittimeout value. Since we don't want to change this setting we had suggested the termmaxdigits property. When using the termmaxdigits property you need to ensure that every grammar that's loaded has an explicitly stated max digits. In this case the we needed to modify the link grammar:

Code: Select all

<grammar type="application/x-jsgf" mode="dtmf" maxdigits="1">"*"</grammar>
When calling into the script now we did not encounter a delay between questions.

We also noted that since the application is DTMF-only you will not need the "sensitivity" property within the root document.

Regards,
Plum Support