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
We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics
Lag between two options
Re: Lag between two options
Hi Rahul,
Since you know the max number of digits for your PAN and DOB fields, we recommend using the termmaxdigits property like this:
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:
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
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"/>
Code: Select all
<field name="DOB" type="digits?length=8">
Regards,
Plum Support
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com
Re: Lag between two options
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
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
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: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
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>
We also noted that since the application is DTMF-only you will not need the "sensitivity" property within the root document.
Regards,
Plum Support
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com