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

Call is getting hanged, is there any problem with the code

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
kishore.inline
Posts: 19
Joined: Mon Jun 21, 2010 4:00 am

Call is getting hanged, is there any problem with the code

Post by kishore.inline »

Hi

the following code is written by me, and onces client id is valid it should go to caretakerid validation xml block. But call is getting hanged.

Please help me is the below code written is correct or wrong.

<form id="clockin">
<field name="customerid" type="digits?length=4">
<prompt>
You have selected for Clock In.
</prompt>
<prompt>
Enter Client ID and press Hash to Submit.
</prompt>
<filled>
You entered <value expr="customerid"/>.
<prompt>
Please wait while we process your information.
</prompt>
<submit namelist="customerid" method="post" next="http://voicexcall.99k.org/TestVXML/CustomerID.php"/>
<goto next="#caretakerid"/>
</filled>
<noinput>
Sorry, No Input received.
<reprompt/>
</noinput>
<nomatch>
Sorry, Invalid Client ID.
<reprompt/>
</nomatch>
</field>
<block>
Please hold for clockin.
</block>


<field name="caretakerid" type="digits?length=6">
<prompt>
Enter CareTaker ID and Password. Enter CareTakerID followed by Star then Password. And press Hash to Submit.
</prompt>
<filled>
You entered <value expr="caretakerid"/>.
<prompt>
Please wait while we process your information.
</prompt>
<submit namelist="caretakerid" next="http://voicexcall.99k.org/TestVXML/CareTakerID.php"/>
</filled>
<noinput>
Sorry, No Input received.
<reprompt/>
</noinput>
<nomatch>
Sorry, Invalid CareTaker ID.
<reprompt/>
</nomatch>
</field>
<block>
Please hold for clockin.
</block>



</form>

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

Re: Call is getting hanged, is there any problem with the co

Post by support »

Hi,

This issue here is that you are trying to use the next attribute within the goto tag to jump to another field within a single form, but what you want to do is use that tag to jump to another form altogether. The easiest fix is to simply add a new <form> around the part of the code that you want to jump to. Here's an example:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">
  <form id="clockin">
<field name="customerid" type="digits?length=4">
      <prompt>
        You have selected for Clock In.

	Enter Client ID and press Hash to Submit.
      </prompt>
      <filled>
        You entered <value expr="customerid"/>.

	Please wait while we process your information.

	<goto next="#nextform"/> 
      </filled>
<noinput>
Sorry, No Input received.
<reprompt/>
</noinput>
<nomatch>
Sorry, Invalid Client ID.
<reprompt/>
</nomatch>
</field>
<block>
Please hold for clockin.
</block>
</form>


<form id="nextform">
<field name="caretakerid" type="digits?length=6">
      <prompt>
        Enter CareTaker ID and Password. Enter CareTakerID followed by Star then Password. And press Hash to Submit.
      </prompt>
      <filled>
        You entered <value expr="caretakerid"/>.

	Please wait while we process your information.

      </filled>
<noinput>
Sorry, No Input received.
<reprompt/>
</noinput>
<nomatch>
Sorry, Invalid Client ID.
<reprompt/>
</nomatch>
</field>
<block>
Please hold for clockin.
</block>



</form>
</vxml>


Regards,
Plum Support

Post Reply