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

<say-as> tag in <choice> tage is not working

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
vikeshpunjabi
Posts: 8
Joined: Fri Sep 05, 2008 2:22 am
Contact:

<say-as> tag in <choice> tage is not working

Post by vikeshpunjabi »

I am trying to iterate incoming data from server, i.e. appointment dates and I'm using code like following

Example:

<menu id="testdatetime">
<prompt>
choose date time from following.
</prompt>
<choice next="#date1" dtmf="1">
<say-as interpret-as="date" format="mdy">09/23/2008<say-as>
</choice>

<choice next="#date2" dtmf="2">
<say-as interpret-as="date" format="mdy">09/23/2008<say-as>
</choice>
</menu>

I know, <say-as> is not child tag of <choice> in Voice xml 2.0, but it is supported in voice xml 2.1. problem is that, my application will be hosted on Plum which supports only voicexml 2.0.

Can any one tell me another way do that.

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

IVR platform supports VoiceXML 2.1

Post by support »

Hi,

Our IVR platform does indeed support VoiceXML 2.1.

However, we cannot find anything in the VoiceXML 2.1 specification that says that the IVR tag, <say-as> , can be a child tag of the IVR tag, <choice>. Can you provide us with further information on where you have seen that the <say-as> tag should be a child tag of the <choice> tag for VoiceXML 2.1?

As a possible solution, you could try the following IVR example:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">
<menu id="choosedate" dtmf="true">
	<prompt>
		Choose a date from the following.
		<enumerate>
			For <say-as interpret-as="date" format="mdy"><value expr="_prompt"/></say-as>, press <value expr="_dtmf"/>.
		</enumerate>
	</prompt>
	<choice next="http://nonexistent.domain.com/date1.vxml" dtmf="1">
		September 23 2008
	</choice>

	<choice next="http://nonexistent.domain.com/date2.vxml" dtmf="2">
		September 24 2008
	</choice>
</menu>
</vxml>
Regards,
Plum Support

Post Reply