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
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
Re: Error message configuration
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:
start.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
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>
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>
Regards,
Plum Support
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com
Re: Error message configuration
It worked. Thanks
Re: Error message configuration
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
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
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
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
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com