Share This Post:
Use Asterisk in VXML script
I am testing out my custom outbound VXML script and my dtmf element is failing when using and asterisk ‘*’. I have defined the element defined as such:
<dtmf>
0 | 1 | 2 | 3 | 4 | * | #
</dtmf>the output.log reports: Encountered “*” at line 1, column 41. How can we use the asterisk key with dtmf?
The asterisk is a reserved character in the grammar definition. For literal meaning, you can quote it like:
<dtmf>
0 | 1 | 2 | 3 | 4 | ‘*’ | #
</dtmf>
This should work in your VXML script.
Share This Post: