Page 1 of 1

inputmodes not working

Posted: Wed Nov 02, 2011 2:00 pm
by magicsoft
Below is a snippet of my VXML file. In my root file I have the following line:

Code: Select all

<property name="inputmodes" value="dtmf"/>
However, when it starts playing my audio files (the parts between the # signs are replaced before the VXML is returned from the server), it still allows a voice to interrupt. I only want a digit to be able to do that. Why isn't this working?

Thanks,

Andrew

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0" application="call_root.vxml">
	<form id="test">
		<record name="answer" beep="false" modal="false" type="audio/x-wav" dtmfterm="true" finalsilence="2s" maxtime="60s">
			<prompt bargein="true" timeout="3s">
				<audio src="#INTRO_ENGLISH#"></audio>
				<audio src="#INTRO_SPANISH#"></audio>
			</prompt>
			<noinput>
				<goto next="#machine"/>
			</noinput>
			<filled>
				<if cond="answer$.termchar==1">
					<goto next="#person_english"/>
				<elseif cond="answer$.termchar==2" />
					<goto next="#person_spanish"/>
				<else/>
					<goto next="#test"/>
				</if>
			</filled>
		</record>
	</form>
</vxml>

Re: inputmodes not working

Posted: Wed Nov 02, 2011 4:09 pm
by support
Hi Andrew,

Since your prompts are inside the <record> tag, the application must listen for voice inputs because it is expecting to record them. Are you trying to capture a DTMF response or a recording? You cannot do both at the time.

Regards,
Plum Support

Re: inputmodes not working

Posted: Thu Nov 03, 2011 7:12 am
by magicsoft
That makes sense. I hadn't even thought of that. What I'm really trying to do is just listen for the end of someone's voicemail message after those prompts (I do something similar in another type of call, but bargein is set to false there anyway). I don't think this is going to work for me the same way because the prompts in this call are much longer and wouldn't be over by the time the voicemail beep came anyway, so the person would end up hearing the prompt on their message. I think I'll have to come up with another solution. But thanks for pointing out the problem, I was going nuts trying to figure out why that part wasn't at least doing what I wanted.

Thanks,

Andrew