Created by: CLAUDIO RIVAS on 29-10-2011 07:29:33 PM Hi everyone, I'm running a CVP Script to transfer calls to the PSTN, the basic funcionality which consists on receiving a call from PSTN from caller "A" and ask a number to transfer the call to a "B" user, this is running fine, but i need to see the duration of the call (i've solved this by ussing a bridged transfer) and be able to know on a log or database basis if the call was compleated was stablished and the result of the call, i'm getting the result and reason and clearle see a "normal" disconnect on the call variable result, but I can't see if the call was answered or not from the B side, to keep track of the duration of the call and modify a database by substracting the amount of minutes that a user have as a limit for each month. I'm running a java class on every end of call to complete this job, which doesn't work just fine because once the call transfer is not compleated (i mean if the caller "A" hang up before "B" can answer the call i see the following call results: 10.10.10.8.1319930557062.501657.myapp,10/29/2011 18:23:18.265,,custom,On End Call,CallResult: normal 10.10.10.8.1319930557062.501657.myapp,10/29/2011 18:23:18.265,,custom,On End Call,CallEnded: hangup So I'm unable to identify if the call completed the transfer to do or prevent the modification on the user's minutes balance on a call transfered success basis. I know that i can modify the Transfer Element so i can take the real ISDN message and push it to a session variable, but I'm not sure if there is a known cause code or any other kind of data to know if the transfer is completed or not. Any kind of help will be appreciated. One more thing as far as I know this event is known as call attempt canceled, please tell me if i'm wrong but my experience tells me to find a way to get this event.
Regards, Claudio.
Subject: RE: New Message from CLAUDIO RIVAS in Customer Voice Portal (CVP) - CVP - A Replied by: Hemal Mehta on 29-10-2011 09:18:32 PM You should look for exit state in case of bridged transfer. These can be. busy The number was busy. noanswer There was no answer. phone_error There was some sort of phone-related error. done The call transfer completed successfully.
Are you checking for these ? Also I am assuming you are using standalone env. Try to catch a hotevent connection.disconnect.hangup or catch telephone.disconnect.hangup. These happen when the first caller hangs up. In your end class when it hangsup, you can catch it and do appropiate.
Hemal ________________________________ From: Cisco Developer Community Forums [cdicuser@developer.cisco.com] Sent: Saturday, October 29, 2011 6:29 PM To: cdicuser@developer.cisco.com Subject: New Message from CLAUDIO RIVAS in Customer Voice Portal (CVP) - CVP - All Versions: Hang up event
CLAUDIO RIVAS has created a new message in the forum "CVP - All Versions":
-------------------------------------------------------------- Hi everyone,
I'm running a CVP Script to transfer calls to the PSTN, the basic funcionality which consists on receiving a call from PSTN from caller "A" and ask a number to transfer the call to a "B" user, this is running fine, but i need to see the duration of the call (i've solved this by ussing a bridged transfer) and be able to know on a log or database basis if the call was compleated was stablished and the result of the call, i'm getting the result and reason and clearle see a "normal" disconnect on the call variable result, but I can't see if the call was answered or not from the B side, to keep track of the duration of the call and modify a database by substracting the amount of minutes that a user have as a limit for each month. I'm running a java class on every end of call to complete this job, which doesn't work just fine because once the call transfer is not compleated (i mean if the caller "A" hang up before "B" can answer the call i see the following call results:
10.10.10.8.1319930557062.501657.myapp,10/29/2011 18:23:18.265,,custom,On End Call,CallResult: normal 10.10.10.8.1319930557062.501657.myapp,10/29/2011 18:23:18.265,,custom,On End Call,CallEnded: hangup
So I'm unable to identify if the call completed the transfer to do or prevent the modification on the user's minutes balance on a call transfered success basis.
I know that i can modify the Transfer Element so i can take the real ISDN message and push it to a session variable, but I'm not sure if there is a known cause code or any other kind of data to know if the transfer is completed or not. Any kind of help will be appreciated.
Regards, Claudio. -- To respond to this post, please click the following link:
Subject: RE: Hang up event Replied by: CLAUDIO RIVAS on 30-10-2011 01:20:30 AM Hi Hemal,
Yes, I'm ussing CVP Standalone, and also I'm ussing Bridged Transfer to keep track of the call duration, I understand that the events done, answer, busy and phone_error are branches from the Transfer element which result from an action taked in place. On a Bridged Transfer, when a "done" is taking in place? Once the call is answered by the destination user or after one of the users hangup? Do this hotevent events identify if the originating caller is doing a hangup before the call is answered by the destination user? Sorry to answer with more questions but i think that if i clarify this I'm sure I will solve this issue.
Best Regards, Claudio.
Subject: RE: Hang up event Replied by: Hemal Mehta on 30-10-2011 08:11:26 AM Based on how vxml works and the specification "if the caller disconnects by hanging up during a call transfer attempt before the connection to the callee begins, a connection.disconnect.hangup event will be thrown, and dialog execution will transition to a handler for the hangup event (if one exists). The form item variable, and thus shadow variables, will not be set. Once the transfer begins and the interpreter disconnects from the session, the platform throws connection.disconnect.transfer and document interpretation continues normally."
If you have chosen your project to be compliant to VoiceXML spec, it should follow this. If not you may need check with Cisco.
Subject: RE: Hang up event Replied by: CLAUDIO RIVAS on 31-10-2011 01:46:04 AM Hi Hemal,
I've seen on a document that those events are reserved as well as any "com.audium" named event. But i would like to try, the only thing here is that i don't have any class as a sample just with as a simple example just to be sure about the event that will be triggered by the hotevent.Where can i get a sample class / script showing how to fetch that event. I've added a hotevent with the event connection.disconnect.hangup but i think i need to place something into the class it will call to be sure whatever code i place inside i think i need an event on the object right? Were can i get a sample or a definition of what the hotevent class triggered by the hot event will need. First i think i will need something like " .addToLog("On Hotevent, Hotevent successful!");"
Regards,
Subject: RE: Hang up event Replied by: CLAUDIO RIVAS on 31-10-2011 06:35:06 PM Ok,
On my testings with the connection.disconnect.hangup and telephone.disconnect.hangup hot events, i've tryied 3 cases for both events
1.- Caller dials CVP application for transfer, calle phone rings, callee answers the call, callee hangup (far end like disconnect) 2.- Caller dials CVP application for transfer, calle phone rings, caller hangup (notice callee is not answering the call) 3.- Caller dials CVP application for transfer, calle phone rings, callee answers the call, caller hangup (near end like disconnect)
I found this:
My results on all testings placed with connection.disconnect.hangup, is simply fail, seems the hotevent is completly ignored by the callflow. Regarding the telephone.disconnect.hangup, i've found something more interesting results
1.- Caller dials CVP application for transfer, calle phone rings, callee answers the call, callee hangup (far end like disconnect) - Result on a call completed and fully logged, i've noticed that the event is tracked on the logs. 2.- Caller dials CVP application for transfer, calle phone rings, caller hangup (notice callee is not answering the call) - Same result as previous test. 3.- Caller dials CVP application for transfer, calle phone rings, callee answers the call, caller hangup (near end like disconnect) - The call simply stucks and is not logging any part of the script (this is the only issue to solve for now and the behavior is extrange, but still preaty odd for me, because there is no log of the issue and the session seems active, so i need to restart the Cisco CVP VXMLServer Service to drop the session.
Hope someone have run on the same issue or have a mayor idea about this kind of behaviors which i suppose are normal. If someone have a better suggestion about running another kind of solution please share some with us and leave a comment here XP
Best regards, Claudio.
Subject: RE: Hang up event Replied by: CLAUDIO RIVAS on 31-10-2011 10:39:03 PM Hi,
Seems finally i have some clarity thanks for the forums, it seems that I have some issues with the hangup event because is cached before the call ends, so i need to retrigger this event any ideas audium_action=hangup, any ideas on how to do it? Any audium document that you could suggest?
Regards, Claudio.
Subject: RE: Hang up event Replied by: CLAUDIO RIVAS on 01-11-2011 03:54:00 PM Seems i need to trigger the event audium_action=hangup, but i don't have any idea on how to place this event or how to trigger it, I've found this document trough the forum, but I'm not sure how to trigger this. On the document there is a reference for the catch event,
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: