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

SWI_literal: does it accept properties as per SISR?

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
moshe
Posts: 66
Joined: Wed Aug 15, 2007 5:36 pm
Location: Chicago
Contact:

SWI_literal: does it accept properties as per SISR?

Post by moshe »

In grammar fiiles, I'd like to know if the I can use properties attached to SWI_literal.

According to the SISR spec, I can use a construct such as

Code: Select all

<tag>out.foo="bar"</tag>
and in my field element use

Code: Select all

<field name="alpha" slot="foo">
and, on recognition, the field element's alpha will contain "bar."

I'd like to know if:

(a) Whether

Code: Select all

<tag>SWI_literal.foo="bar"</tag>
is supported. My current code isn't working, and if SWI_literal cannot have properties, that'd explain why my code is not working.

(b) If the slot attribute is supported, i.e., if

Code: Select all

<field name="alpha" slot="foo">
is supported.

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

Clarification of IVR issues

Post by support »

Using the IVR system:

"(a)" is not supported, the SWI_literal cannot have properties.

"(b)" is supported, the slot attribute of the <field> tag is supported.
Last edited by support on Tue Jan 12, 2010 1:19 pm, edited 2 times in total.

moshe
Posts: 66
Joined: Wed Aug 15, 2007 5:36 pm
Location: Chicago
Contact:

Post by moshe »

How can I get an interpretation and slot to work if SWI_literal.answer is not supported? Do I use

Code: Select all

<tag>answer="foo"</tag>
and

Code: Select all

slot="answer"
or something else?

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

IVR code

Post by support »

Yes, using the <tag> that will work. Here is an example IVR code snippet:

<var name="name"/>
...
<tag>
name="Garfield"
</tag>
...
<field name="title" slot="name" />

In this IVR example, the field title gets the string value "Garfield".

Post Reply