Page 1 of 1

how to replace default system error with audio ivr

Posted: Sat Mar 14, 2015 12:14 pm
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>
---------

Re: how to replace default system error with audio ivr

Posted: Mon Mar 16, 2015 10:20 am
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