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

how to replace default system error with audio ivr

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
ecruz
Posts: 1
Joined: Thu Mar 12, 2015 1:48 pm

how to replace default system error with audio ivr

Post by ecruz »

how can I replace a system generated error prompt to a customize audio ivr we have...I have set the vxml to below:

<if cond="confirm==1">
<submit next="renew.php" method="post" namelist="id/>
<else/>
<audio src="didnotunderstand.wav">Sorry, I did not understand you</audio>
<reprompt/>
</if>
</filled>

but still, the system generated error message is playing--see log below:

dtmf input: 2
received event: nomatch:
bargein set to true
INPUTMODES set to "DTMF VOICE"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak>Sorry, I didn't understand you. </speak>
---------

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

Re: how to replace default system error with audio ivr

Post by support »

Hi,

In order to change the default error messages for nomatch and noinput events, please use the <nomatch> and <noinput> tags. Below is an snippet on how to use the <nomatch> tag for your example:

Code: Select all

<form>
  <field name="confirm" type="boolean">
    <prompt>
     Press 1 to confirm.
    </prompt>
    <filled>
      <submit next="renew.php" method="post" namelist="id/>
    </filled>
    <nomatch>
      <audio src="didnotunderstand.wav">Sorry, I did not understand you</audio>
      <reprompt/>
    </nomatch>
  </field>
</form>
When a user input does not match the grammar for the <field> element, the <filled> element does not actually get called, but instead a "nomatch" and "noinput" events are thrown. You can use the above tags to handle these events.

We also recommend using a Root Document so that you can change the nomatch and noinput behaviors globally throughout your application, instead of within each and every form.

Regards,
Plum Support

Post Reply