Page 1 of 1

XML form should call another XML form for playing prompt msg

Posted: Wed Jul 21, 2010 4:37 am
by kishore.inline
Hi All

In the below code which is marked as red, that particular messages should come from another from, (My another form where messages are genereated from DB).

How can I call another from to play the messages in the marked place.



<form id="clockin">
<field name="clockin_customerid" type="digits">
<grammar root="ROOT" type="application/srgs+xml" mode="dtmf">
<rule id="ROOT" scope="public">
<one-of>
<item repeat="0-255">
<ruleref uri="#digit"/>
</item>
<item> "#" </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>
<item> "#" </item>
</one-of>
</rule>
</grammar>

<prompt>
You have selected for Clock In.
</prompt>
<prompt>
Enter your Four digit Client ID and press Hash to Submit.
</prompt>

<filled>
<if cond="clockin_customerid.indexOf('#') != -1">
<assign name="clockin_customerid" expr="clockin_customerid.toString().replace(/#/,'')"/>
<prompt>
You entered <value expr="clockin_customerid"/>. Please wait while we process your information.
</prompt>

<else/>
<prompt>
You entered <value expr="clockin_customerid"/>. You must press hash to submit your client ID.
</prompt>
</if>
</filled>
<noinput>
Sorry, No Input received.
<reprompt/>
</noinput>
<nomatch>
Sorry, Invalid Client ID.
<reprompt/>
</nomatch>
</field>


</form>

Dynamic IVR Prompts

Posted: Wed Jul 21, 2010 9:38 am
by support
Hi Kishore,

This previous IVR post contains most of the code you would want to use to solve this issue.

The line that would differ would be:

Code: Select all

<assign name="cust_id" expr="customerid"/>
Instead, you would want to set the variable attribute equal to the dynamically created string.

Code: Select all

<?php $statement = "Enter your Four digit Client ID and press Hash to Submit."; ?>
<assign name="dynamic_prompt" expr="'<?= $statement ?>'"/>
You would then be able to prompt using the dynamic prompt by using the <value> tag:

Code: Select all

<prompt> <value expr="dynamic_prompt"/> </prompt>
Regards,
Plum Support

Re: XML form should call another XML form for playing prompt

Posted: Thu Jul 22, 2010 6:46 am
by kishore.inline
The above post is not help full. my plum xml is in scratch pad and my db xml is in remote place, so I need to call messages remote xml to scratch pad. or I have to send the telephone session ID to the remote xml using <goto next='http://xyz.com/myfile.xml'>.

I understand your support is only for VXML but if go further, I want a solution to send session or input (telephone pad) values to remote xml from scratch pad. I know how to send a values from one form to another form if both forms are in same scratch pad, but give me the soluton, if I need to send from one form to another and both forms are in differnt location (urls).

Re: XML form should call another XML form for playing prompt

Posted: Thu Jul 22, 2010 10:10 am
by support
Hi Kishore,

If you're looking to send values to your remote xml from your scratchpad, you would be able to use any of the data transfer tags to assist you: <submit>, <subdialog>, and <data>.

There's some documentation that can help you with this process:

http://www.plumvoice.com/docs/dev/devel ... taexchange
http://www.plumvoice.com/docs/dev/devel ... Submit_Tag
http://www.plumvoice.com/docs/dev/devel ... dialog_Tag
http://www.plumvoice.com/docs/dev/devel ... e_Data_Tag

If you require a developer solution for your application, you may contact your account manager about purchasing developer hours.

Regards,
Plum Support