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

Problem with posting "#" character

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
epetroel
Posts: 2
Joined: Thu Aug 25, 2011 8:47 am

Problem with posting "#" character

Post by epetroel »

I've noticed that recently (starting a couple days ago) there seems to be an issue with posting of the '#' character.

I have a script that asks the user to enter a four digit date (mmdd) or press # if the date is unknown. If you press the # key, the data posted contains the variable, but the value is empty rather than containing the string "#". This has worked fine for a long time now and seemed to have just stopped working a couple days ago. Any ideas why that might be?

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

Re: Problem with posting "#" character

Post by support »

Hi,

Would you be able to supply some sample code on how you're collecting this information?

Regards,
Plum Support

epetroel
Posts: 2
Joined: Thu Aug 25, 2011 8:47 am

Re: Problem with posting "#" character

Post by epetroel »

Sure, here's the voice XML that we are using. What always happened before was if the caller would press "#", they would get the "You have chosen an unknown return to work date..." message. The "#" would then be posted to the responder script.

Now, they do not get the "You have chosen an unknown return to work date..." message, and the "absence_end_date" value posted back to the PHP page is empty (as verified by doing a var_dump on $_REQUEST) rather than containing a "#".

Code: Select all

<vxml version="2.0" application="http://xxxxx.com/root.php">
<form>
	<block><assign name="voice_action" expr="'Absence_End'"/></block>
	<field name="absence_end_date">
		<property name="interdigittimeout" value="2s"/>
		<grammar type="application/srgs+xml" root="root_absence_end" mode="dtmf">
			<rule id="root_absence_end" scope="public">
				<one-of>
					<item>#</item>
					<item repeat="4"><ruleref uri="#digit"/></item>
				</one-of>
			</rule>
			<rule id="digit" scope="public">
				<one-of><item>0</item><item>1</item><item>2</item><item>3</item><item>4</item><item>5</item><item>6</item><item>7</item><item>8</item><item>9</item></one-of>
			</rule>
		</grammar>
		<prompt>
			<voice></voice>
		</prompt>
		<prompt>
			<voice>Enter the two digit month and two digit day you will be returning to work, or press the pound key if unknown.</voice>
		</prompt>
		<nomatch>
			<prompt><voice>You must enter exactly four digits.</voice></prompt>
			<reprompt/>
		</nomatch>
		<noinput>
			<prompt><voice>You must provide the two digit month and two digit day for the date of your absence to continue.</voice></prompt>
			<reprompt/>
		</noinput>
		<filled>
			<if cond="absence_end_date == '#'"><prompt><voice>You have chosen an unknown return to work date. You must call into this absence reporting system each work day until your return to work date is known.</voice></prompt></if>
		</filled>
	</field>
	<block>
		<submit namelist="voice_action absence_end_date" next="http://xxxxx.com/responder.php" method="post"/>
	</block>
</form>
</vxml>

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

Re: Problem with posting "#" character

Post by support »

Hi,

Please follow up with us concerning this issue via support@plumvoice.com. Please include your customer ID in the subject line.

Regards,
Plum Support

Post Reply