We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

inputmodes not working

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
magicsoft
Posts: 44
Joined: Wed Aug 25, 2010 8:57 am

inputmodes not working

Post 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>

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: inputmodes not working

Post 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

magicsoft
Posts: 44
Joined: Wed Aug 25, 2010 8:57 am

Re: inputmodes not working

Post 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

Post Reply