Error message configuration

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

  • Author
  • Message
Offline

averlan

  • Posts: 28
  • Joined: Thu Sep 21, 2017 8:24 pm

Error message configuration

PostWed Feb 21, 2018 11:32 am

Hi,

I was wondering if there is any way to configure your default message "DocumentParser::FetchDocument - Parse error in file: received event: error.badfetch" to custom "I'm sorry, but we're currently experiencing issues. Please try your call again later." I think the second will be more appropriate to hear for our customers.

Thanks
Offline

support

  • Posts: 3456
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: Error message configuration

PostThu Feb 22, 2018 2:12 pm

Hi,

To change the message for badfetch errors, you can catch the error.badfetch event in your root document and play the message you would rather play than the default upon catching this event. An example would be as follows

root.vxml:
Code: Select all
<?xml version="1.0"?>
<vxml version="2.0">
    <catch event="error.badfetch">
        I'm sorry, but we're currently experiencing issues. Please try your call again later.
    </catch>
</vxml>


start.vxml:
Code: Select all
<?xml version="1.0"?>
<vxml version="2.0" application="root.vxml">
    <form id="form_1">
        <block name="block_1">
             <prompt>Going to go to the next page</prompt>
             <goto next="nonexistant_page.vxml"/>
        </block>
    </form>
</vxml>


Here, if nonexistant_page.vxml either doesn't exist or has syntax errors, when your application tries to go to nonexistant_page.vxml the badfetch event will be caught by the handler in the root document, and your custom error message will be played. For more information on the root document and global catch handlers, you can reference our docs here: http://www.plumvoice.com/docs/dev/developer_reference:rootdocument

Regards,
Plum Support
Offline

averlan

  • Posts: 28
  • Joined: Thu Sep 21, 2017 8:24 pm

Re: Error message configuration

PostThu Feb 22, 2018 9:57 pm

It worked. Thanks
Offline

averlan

  • Posts: 28
  • Joined: Thu Sep 21, 2017 8:24 pm

Re: Error message configuration

PostTue Mar 13, 2018 11:14 am

Hi,

I have another question regarding the error message configuration. How we can configure default message in case of some network issues? For example, currently what error message will be played if for some reason the network went down and "root.vxml" can't be accessed?

Thanks
Offline

support

  • Posts: 3456
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: Error message configuration

PostTue Mar 13, 2018 1:17 pm

Hi,

If you are concerned about your root document being inaccessible we would recommend using a scratchpad application for the error handling. You can set up a scratchpad that makes a request to your start_url. If it receives a response it can proceed to execute your application as usual. If it receives an error you can proceed with the catch event tag we outlined previously, which will play your custom message to the caller.

Please let us know if you have any other questions.

Regards,
Plum Support

Return to Plum DEV Q&A

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest