Record Tag and dtmf grammars
Posted: Tue Jun 12, 2007 2:47 pm
Hi
I am a little confused with how to handle the telephone key presses during a <record>. I suspect I have something wrong somewhere.
Basically, I have a set grammar. I only want users to be able to press those keys during a record (to stop recording); any other keypresses are to be ignored and recording continue. What currently happens is that any key pressed stops my recording.
Here is a general outline of my vxml.
<record name="recording" beep="true" modal="false" dtmfterm="true" type="audio/x-wav">
<grammar>(1|4|6|"*"|"#")</grammar>
<prompt/>
<filled>
</filled>
</record>
I tried placing the grammar above the <record> tag but that didn't seem to make a difference. I have no <catch> events, since I don't want to catch invalid inputs, I just want the recording to continue as if nothing happened.
Perhaps somebody could advise me as to what I am doing wrong.
Thanks.
I am a little confused with how to handle the telephone key presses during a <record>. I suspect I have something wrong somewhere.
Basically, I have a set grammar. I only want users to be able to press those keys during a record (to stop recording); any other keypresses are to be ignored and recording continue. What currently happens is that any key pressed stops my recording.
Here is a general outline of my vxml.
<record name="recording" beep="true" modal="false" dtmfterm="true" type="audio/x-wav">
<grammar>(1|4|6|"*"|"#")</grammar>
<prompt/>
<filled>
</filled>
</record>
I tried placing the grammar above the <record> tag but that didn't seem to make a difference. I have no <catch> events, since I don't want to catch invalid inputs, I just want the recording to continue as if nothing happened.
Perhaps somebody could advise me as to what I am doing wrong.
Thanks.