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

Error message configuration

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
averlan
Posts: 30
Joined: Thu Sep 21, 2017 8:24 pm

Error message configuration

Post by averlan »

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

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

Re: Error message configuration

Post by support »

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/devel ... otdocument

Regards,
Plum Support

averlan
Posts: 30
Joined: Thu Sep 21, 2017 8:24 pm

Re: Error message configuration

Post by averlan »

It worked. Thanks

averlan
Posts: 30
Joined: Thu Sep 21, 2017 8:24 pm

Re: Error message configuration

Post by averlan »

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

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

Re: Error message configuration

Post by support »

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

Post Reply