cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Cisco Community Designated VIP Class of 2020

handle "error.XXXX.XXXXX" events

1321
Views
0
Helpful
0
Comments
This document was generated from CDN thread

Created by: ahm gawad on 07-06-2011 04:09:19 PM
Dear All:
 
I am trying to handle "error.XXXX.XXXXX" events by catching it and submit it back to the cvp server.
 
I
have make an  element that produce the proper vxml but when I submit it
back to cvp it  is still give the same error "error.xxx.xxxxx"
please can any one give me a working example.
 
Thanks in advance.
 
 

Subject: Re: New Message from ahm gawad in Customer Voice Portal (CVP) - CVP - All V
Replied by: Janine Graves on 08-06-2011 11:16:54 AM
I don't understand what you are doing. Are you trying to handle one of
the standard errors, like error.badfetch.http?
And are you using a HotEvent element and putting in that exact event name?
And if so, what's the issue, is VxmlServer NOT going to your HotEvent
element?
If that's the case, it could be you've misspelled the event name (it's
all case-sensitive) or that the system is giving you back a different
event than you think.

Or it could be that the root document is already catching a
more-specific version of that event (for example, if you catch
error.badfetch but an error.badfetch.http occurs, it won't go to your
error.badfetch handler, but to the one in the root document. So you'd
have to handle both events for it to go to your handler).

What event are you trying to catch???


On 6/7/2011 4:09 PM, Cisco Developer Community Forums wrote:
> ahm gawad has created a new message in the forum "CVP - All Versions":
>
> --------------------------------------------------------------
> Dear All:
> Â
> I am trying to handle "error.XXXX.XXXXX" events by catching it and
> submit it back to the cvp server.
> Â
> I
> have make an  element that produce the proper vxml but when I submit it
> back to cvp it  is still give the same error "error.xxx.xxxxx"
> please can any one give me a working example.
> Â
> Thanks in advance.
> Â
> Â
> --
> To respond to this post, please click the following link:
>
> <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/4018437>
>
> or simply reply to this email.

--
Janine Graves

Subject: RE: handle "error.XXXX.XXXXX" events
Replied by: ahm gawad on 09-06-2011 10:38:13 AM
Hello Janine ,
Thanks for your reply

I am trying to add "error.com.cisco.media.resource.unavailable.tts"  event handler  to my custom component which plays tts  . the problem is even i am using <catch>  in my component the event is not  catched   and still thrown and CVP return error.com.cisco.media.resource.unavailable.tts .I can handle this error using HOTEVENT but i don't know why my element is not catching the error.


Thanks

Subject: Re: New Message from ahm gawad in Customer Voice Portal (CVP) - CVP - All V
Replied by: Janine Graves on 09-06-2011 11:00:54 AM
So, are you saying that you wrote a java class that creates the vxml
code for a catch handler?
Do you see your catch handler in the root document being created? You'd
have to turn on vxml debug logging to see the vxml - but that's the
first thing you should check.
To turn on VxmlLogging, go to the studio app - Project / Properties
/General Settings. Next to the Loggers box, press Add.
Enter the Name: VxmlLogs (this becomes a folder under the
VxmlServer/applications/<appname>/logs folder
Enter the Java Class:
com.audium.logger.application.debug.ApplicationDebugLogger (case sensitive).
Save and deploy the app, run the updateApp.bat script.
Call into the app and then hang up immediately.
Look in the VxmlServer/applications/<appname>/logs/VxmlLogs folder and
open the log - you'll see the root document as the second VxmlResponse
to the gateway.
Do you see your code there?
If so, what is your code doing - can you copy/paste it here?

Janine


On 6/9/2011 10:38 AM, Cisco Developer Community Forums wrote:
> ahm gawad has created a new message in the forum "CVP - All Versions":
>
> --------------------------------------------------------------
> Hello Janine ,
> Thanks for your reply
>
> I am trying to add "error.com.cisco.media.resource.unavailable.tts"
> event handler (HOTEVENT) to my custom component . the problem is even
> i am using <catch> in my component the event is not catched and still
> thrown and CVP return error.com.cisco.media.resource.unavailable.tts .
>
> Thanks
> --
> To respond to this post, please click the following link:
>
> <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/4026675>
>
> or simply reply to this email.

--
Janine Graves

Subject: Re: New Message from ahm gawad in Customer Voice Portal (CVP) - CVP -All Ve
Replied by: Janine Graves on 09-06-2011 11:52:54 AM
Try catching error.noresource also using a hotevent element.

Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: Cisco Developer Community Forums <cdicuser@developer.cisco.com>
Date: Thu, 9 Jun 2011 11:19:29
To: cdicuser@developer.cisco.com<cdicuser@developer.cisco.com>
Reply-To: "cdicuser@developer.cisco.com" <cdicuser@developer.cisco.com>
Subject: New Message from ahm gawad in Customer Voice Portal (CVP) - CVP -
All Versions: RE: handle "error.XXXX.XXXXX" events

ahm gawad has created a new message in the forum "CVP - All Versions":

--------------------------------------------------------------
I am trying to add "error.com.cisco.media.resource.unavailable.tts" event handler to my custom component which plays tts . the problem is even i am using <catch> in my component the event is not catched and still thrown and CVP return error.com.cisco.media.resource.unavailable.tts .I can handle this error using HOTEVENT but i don't know why my element is not catching the error.
--
To respond to this post, please click the following link:

<http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/4028523>

or simply reply to this email.

Subject: RE: handle "error.XXXX.XXXXX" events
Replied by: ahm gawad on 09-06-2011 01:49:24 PM
Hello Janine:

Thanks a lot for your answers ,

Could you  tell me how can I override the CVP vxml root document. that I think The cause of this problem is that : The error is caught with the root vxml not my custom element vxml.

Regards

Subject: Re: New Message from ahm gawad in Customer Voice Portal (CVP) - CVP - All V
Replied by: Janine Graves on 09-06-2011 03:01:54 PM
Hi,

1.What type of custom component did you create? Is it a voice element?
Can you post what the VXML code looks like that you are creating?

2.Voice elements CAN have their own custom catch handlers, but if you
are just speaking audio (and aren't collecting input from the caller),
then the Gateway hands off the request to its http/media-player or
mrcp-client process, and tries to move forward. And if it's not waiting
for caller input, the gateway submits back to VxmlServer, notifying it
that everything is good. Then by the time the tts-failure actually
occurs, a new page has replaced your custom vxml, and so in essence, the
system is using the catch handler in the root document. I assume you'd
see all this if you knew how to read the VXML Log.

3.If you want to override the catch handler in the root document, you'll
have to use a studio HotEvent element; specify the event:
error.com.cisco.media.resource.unavailable.tts; and select the Class
checkbox. Then enter the name of a java class that will create the
<catch> handler - this puts your catch handler into the root document.
You can also optionally have an exit state to continue the call flow
once your java code has executed. Or de-select the HasExitState checkbox
if you just want your java code to execute.

4.Then create a Java Class that creates a catch handler.Here's a snippet
from the Javadocs: "public interface HoteventInterface: This Java
interface must be implemented by classes that define a hotevent. A
hotevent is some custom VoiceXML content that is executed when a certain
VoiceXML event occurs. This VoiceXML content is placed in the ROOT
DOCUMENT so that any time the event occurs, the content is executed.
This interface defines a single method which is expected to return the
VoiceXML (using VFCs) to be executed.
The only purpose of the class that implements this interface is to
produce the VoiceXML to be placed in the root document for this event.
Additionally, this class is only called once by Call Services/VXML
Server to obtain the VoiceXML content, it is not called each time the
event occurs. As a result, this class does not have access to any
dynamic content, the VoiceXML content returned will apply to all
occurrences of the specified event."

5.If however, you are trying to catch the event within your custom
element, then you'll have to convert your <block> into a <field> to
force the gateway to play the audio and wait until it's all played
before moving on. This means you are faking the gateway into thinking
you're collecting input from the caller. So you'll want to set max
nomatch and max noinput to 1 and set your noinput timeout to 10ms (or
something very small). Then no matter what occurs, just submit back to
VxmlServer.

Janine
www.TrainingTheExperts.com

------------------------------------------------------------------------



On 6/9/2011 1:49 PM, Cisco Developer Community Forums wrote:
> ahm gawad has created a new message in the forum "CVP - All Versions":
>
> --------------------------------------------------------------
> Hello Janine:
>
> Thanks a lot for your answers ,
>
> Could you tell me how can I override the CVP vxml root document. that
> I think The cause of this problem is that : The error is caught with
> the root vxml not my custom element vxml.
>
> Regards
> --
> To respond to this post, please click the following link:
>
> <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/4027486>
>
> or simply reply to this email.

--
Janine Graves

Subject: RE: handle "error.XXXX.XXXXX" events
Replied by: ahm gawad on 09-06-2011 11:19:28 AM
I am trying to add "error.com.cisco.media.resource.unavailable.tts" event handler  to my custom component which plays tts  . the problem is even i am using <catch> in my component the event is not catched and still thrown and CVP return error.com.cisco.media.resource.unavailable.tts .I can handle this error using HOTEVENT but i don't know why my element is not catching the error.

Subject: Re: New Message from ahm gawad in Customer Voice Portal (CVP) - CVP -All Ve
Replied by: Janine Graves on 12-06-2011 08:49:36 AM
So what actually  finally worked?

Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: Cisco Developer Community Forums <cdicuser@developer.cisco.com>
Date: Sun, 12 Jun 2011 08:04:13
To: cdicuser@developer.cisco.com<cdicuser@developer.cisco.com>
Reply-To: "cdicuser@developer.cisco.com" <cdicuser@developer.cisco.com>
Subject: New Message from ahm gawad in Customer Voice Portal (CVP) - CVP -
All Versions: RE: handle "error.XXXX.XXXXX" events

ahm gawad has created a new message in the forum "CVP - All Versions":

--------------------------------------------------------------
Hello Janine:

THANKS A LOT , IT Works .

Again thanks you.
--
To respond to this post, please click the following link:

<http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/4039642>

or simply reply to this email.

Subject: Re: New Message from ahm gawad in Customer Voice Portal (CVP) - CVP -All Ve
Replied by: Janine Graves on 12-06-2011 09:21:35 AM
Ok. Good to know what the workaround was.

Janine

Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: Cisco Developer Community Forums <cdicuser@developer.cisco.com>
Date: Sun, 12 Jun 2011 09:04:56
To: cdicuser@developer.cisco.com<cdicuser@developer.cisco.com>
Reply-To: "cdicuser@developer.cisco.com" <cdicuser@developer.cisco.com>
Subject: New Message from ahm gawad in Customer Voice Portal (CVP) - CVP -
All Versions: RE: handle "error.XXXX.XXXXX" events

ahm gawad has created a new message in the forum "CVP - All Versions":

--------------------------------------------------------------
I have used field and set noinput time out to a small time period (1ms) and it works

5.If however, you are trying to catch the event within your custom
element, then you'll have to convert your <block> into a <field> to
force the gateway to play the audio and wait until it's all played
before moving on. This means you are faking the gateway into thinking
you're collecting input from the caller. So you'll want to set max
nomatch and max noinput to 1 and set your noinput timeout to 10ms (or
something very small). Then no matter what occurs, just submit back to
VxmlServer.

--
To respond to this post, please click the following link:

<http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/4039679>

or simply reply to this email.

Subject: RE: handle "error.XXXX.XXXXX" events
Replied by: ahm gawad on 12-06-2011 08:04:12 AM
Hello Janine:

THANKS A LOT  , IT Works .

Again thanks you.

Subject: RE: handle "error.XXXX.XXXXX" events
Replied by: ahm gawad on 12-06-2011 09:04:55 AM
I have used field and set noinput time out to a small time period (1ms) and it works

5.If however, you are trying to catch the event within your custom
element, then you'll have to convert your <block> into a <field> to
force the gateway to play the audio and wait until it's all played
before moving on. This means you are faking the gateway into thinking
you're collecting input from the caller. So you'll want to set max
nomatch and max noinput to 1 and set your noinput timeout to 10ms (or
something very small). Then no matter what occurs, just submit back to
VxmlServer.

CreatePlease to create content
Content for Community-Ad
FusionCharts will render here