Page 1 of 1

Error message configuration

Posted: Wed Feb 21, 2018 11:32 am
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

Re: Error message configuration

Posted: Thu Feb 22, 2018 2:12 pm
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

Re: Error message configuration

Posted: Thu Feb 22, 2018 9:57 pm
by averlan
It worked. Thanks

Re: Error message configuration

Posted: Tue Mar 13, 2018 11:14 am
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

Re: Error message configuration

Posted: Tue Mar 13, 2018 1:17 pm
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