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

How to play system unavailable msg for mtc

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
dmalta
Posts: 19
Joined: Fri Jul 30, 2010 2:22 pm

How to play system unavailable msg for mtc

Post by dmalta »

Is there any way to change the default "bad fetch error" message to a customized message when our server is down for maintenance? We stop IIS on our server each time we deploy new software, and I was hoping to play something about the site being down for system maintenance.

Thanks in advance!

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

Re: How to play system unavailable msg for mtc

Post by support »

Hi,

If you'd like to change the default error message provided in your application, you can simply add a global <catch> tag that specifies a custom error message. Here's an example:

Code: Select all

<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>
<vxml version="2.0">
  <catch event="error">
    This is a custom error message.
  </catch>
  <form>
    <block>
      <prompt>
         Hello World!
      </prompt>
	  <submit namelist="customerid age" next="http://thissitedoesnotexist.com"/>
    </block>
  </form>
</vxml>
Hope this helps!

Regards,
Plum Support

dmalta
Posts: 19
Joined: Fri Jul 30, 2010 2:22 pm

Re: How to play system unavailable msg for mtc

Post by dmalta »

Hi, I tried putting the catch at the beginning of our welcome form, but I still got the Serious Error of type bad fetch message. IIS is not running while our system maintenance is being performed, so I don't think we would be able to access the application at all.

Is there a generic setting that can be changed if the application can't be accessed at all?

Thanks,

Debbie

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

Re: How to play system unavailable msg for mtc

Post by support »

Hi Debbie,

Sorry, we misunderstood your question before. If the application cannot be retrieved from your server at all, then any custom error messages specified in that application could not be read. In our hosted environment, in the case that the remote application cannot be retrieved, a platform-specific error message is read. However, you could do the following as a work-around for this situation:

You could set up a scratchpad within our hosted environment that basically acts as a forwarding mechanism for your application. You can tie the number used to dial into your application to this scratchpad instead, and use the <goto> tag within the scratchpad to forward along to your application. You can then specify a custom error message within your scratchpad that would be read if the application could not be retrieved. The following is an example of how you would accomplish this:

scratchpad

Code: Select all


<?xml version="1.0"?>
<vxml version="2.0">
  <form>
    <block>
	<goto next="http://url-to-your-application" />
    </block>
  </form>
  <catch event="error">
      This is a custom error message.
  </catch>
</vxml>

Hope this helps.

Regards,
Plum Support

dmalta
Posts: 19
Joined: Fri Jul 30, 2010 2:22 pm

Re: How to play system unavailable msg for mtc

Post by dmalta »

Thanks, that's exactly what I was looking for.

Debbie

Post Reply