<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to catch user hangup event in comprehensive mode</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_category?p_l_id=10572&amp;mbCategoryId=0" />
  <subtitle>How to catch user hangup event in comprehensive mode</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_category?p_l_id=10572&amp;mbCategoryId=0</id>
  <updated>2013-05-24T02:20:33Z</updated>
  <dc:date>2013-05-24T02:20:33Z</dc:date>
  <entry>
    <title>RE: Record element with G711Alaw</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=10572&amp;messageId=7237566" />
    <author>
      <name>Patrik Englund</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=10572&amp;messageId=7237566</id>
    <updated>2012-10-01T17:27:54Z</updated>
    <published>2012-10-01T17:27:54Z</published>
    <summary type="html">Thank´s Paul for your answer, excellent document!</summary>
    <dc:creator>Patrik Englund</dc:creator>
    <dc:date>2012-10-01T17:27:54Z</dc:date>
  </entry>
  <entry>
    <title>RE: Record element with G711Alaw</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=10572&amp;messageId=7237557" />
    <author>
      <name>Patrik Englund</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=10572&amp;messageId=7237557</id>
    <updated>2012-10-01T17:26:58Z</updated>
    <published>2012-10-01T17:26:58Z</published>
    <summary type="html">Thanks Janine, did not know of that setting in Call studio element</summary>
    <dc:creator>Patrik Englund</dc:creator>
    <dc:date>2012-10-01T17:26:58Z</dc:date>
  </entry>
  <entry>
    <title>Record element with G711Alaw</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=10572&amp;messageId=6517771" />
    <author>
      <name>Patrik Englund</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=10572&amp;messageId=6517771</id>
    <updated>2012-09-18T05:26:24Z</updated>
    <published>2012-09-18T05:26:12Z</published>
    <summary type="html">Hi all. I have not been able to find any relevant information or clear answers on if alaw is supported by CVP. I have tested it out and it seems to work
fine although i have one issue when it comes to the Voice - Recording element. Using ulaw the "beep" and recording workes just fine but when using alaw
the "beep" is not working and also not the recording. The error logs shows bad fetch. Dial-peers is set to alaw and all my other audio elements as well as playing prompts from ICM works just fine. Im using CUCCE 8.5 and CVP 8.5.
 
Could this be the limitation of CVP? Is the preferred codec ulaw for the Recording element and not possible to change it or what could be the issue here?
 </summary>
    <dc:creator>Patrik Englund</dc:creator>
    <dc:date>2012-09-18T05:26:12Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to catch user hangup event in comprehensive mode</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=10572&amp;messageId=5990013" />
    <author>
      <name>Patrik Englund</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=10572&amp;messageId=5990013</id>
    <updated>2012-07-05T06:46:14Z</updated>
    <published>2012-07-05T06:46:14Z</published>
    <summary type="html">Hi Janine

It was a coding problem in the java file. sendMail was set after the exception was thrown so it could not continue.
Now it´s corrected and it works perfectly!. Now i have something to work with and fall back on.

Many thanks once again for all your support Bill and Janine!

Janine:  I will try to join the training in Denmark in October, i suppose you are the trainer.

Br Patrik Englund</summary>
    <dc:creator>Patrik Englund</dc:creator>
    <dc:date>2012-07-05T06:46:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to catch user hangup event in comprehensive mode</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=10572&amp;messageId=5988455" />
    <author>
      <name>Patrik Englund</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=10572&amp;messageId=5988455</id>
    <updated>2012-07-04T12:25:40Z</updated>
    <published>2012-07-04T12:25:40Z</published>
    <summary type="html">Hi Bill and Janine. I must first of all thank you for all help so far with this, it´s really impressive knowledge you have about cvp and vcml / java.

I have got some help creating a class that contains the custome onEndCall together with the javax part you provided Bill but it seemd that the javax
is never triggered, it ends with sedning data back to icm, that´s all.

The jar files that javax needs, do they need to be in a specific folder on the vxml server or should they be where they are?
Nevertheless i think the javax part should have been triggered anyhow, or?</summary>
    <dc:creator>Patrik Englund</dc:creator>
    <dc:date>2012-07-04T12:25:40Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to catch user hangup event in comprehensive mode</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=10572&amp;messageId=5931509" />
    <author>
      <name>Patrik Englund</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=10572&amp;messageId=5931509</id>
    <updated>2012-06-27T06:36:46Z</updated>
    <published>2012-06-27T06:36:46Z</published>
    <summary type="html">Ok, now i got rid of the error, perfect! I can see data passed back to icm if using Paul´s example in earlier thread but i suppose there will be a problem using this as if the call dont take the success or failure node in the run ext script node then it will be hard to do anything more.

Should there not be anyone having similar issue as i have? Using recording element and then email element to gether? It works fine if using dtmf or letting the timeout in the recording element to expire, then the email is sent since the vxml app will continue. Problem gets when users hangs up after recording the message and call ends in recording element and email is not sent. Worked fine in IVR to do this with an exception step.</summary>
    <dc:creator>Patrik Englund</dc:creator>
    <dc:date>2012-06-27T06:36:46Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to catch user hangup event in comprehensive mode</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=10572&amp;messageId=5926730" />
    <author>
      <name>Patrik Englund</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=10572&amp;messageId=5926730</id>
    <updated>2012-06-26T09:47:57Z</updated>
    <published>2012-06-26T09:47:57Z</published>
    <summary type="html">[quote]Caller Hangup:  This has been answered many times on the Forum already. Go to Google and search: developer.cisco.com caller hangup - here's one such place where it was discussed: http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/5437146
 
You have to create an End of Call java class and check for how the call ended:
 
    public void onEndCall(CallEndAPI data) throws AudiumException
    {
        if (data.getHowCallEnded().equals("hangup"))
        { blah blah blah
        }
   }[/quote]
 
Hi Janine
 
Many thanks for your reply and yes i know that there are a numerous number of these in the forum but it´s hard to get a clear view of what´s really needed to accomplish this. I took your code from your other thread and compiled it. I hope it went ok as the javac did not complain about anything and i got the .class file. Although im having issues that when putting the .class file in c:\cvp\vxmlserver\applications\voicemail\java\applications\classes the vxml server complains during start up. The error in the error_log states :
 
Root Cause: java.lang.NoClassDefFoundError: AudiumException (wrong name: com/audium/server/AudiumException)
 
This is what i compiled :
 

//These classes are used by on call end classes
 
import com.audium.core.vfc.VException;
import com.audium.core.vfc.VPreference;
import com.audium.core.vfc.form.VBlock;
import com.audium.core.vfc.form.VForm;
import com.audium.core.vfc.util.VAction;
import com.audium.core.vfc.util.VMain;
import com.audium.server.AudiumException;
import com.audium.server.proxy.EndCallInterface;
import com.audium.server.session.CallEndAPI;
 
/**
* If caller hung up, send data 
* from the Session variables return0, return1, return2, return3
* to ICM into ECC variables FromExtVxml[0], [1], [2], [3]
*/
 
public class EndClassSubRet implements EndCallInterface
{
/**
* All On End Call classes must implement this method. Use the passed
* CallEndAPI class to get useful information. Making changes here will
* do nothing as the call has already ended.
*/
 
public void onEndCall(CallEndAPI data) throws AudiumException
{
if (data.getHowCallEnded().equals("hangup"))
{
try {
 
//get data to return to ICM from these Session variables:
//and return 'hangup' in the caller_input ECC variable of ICM
//return0, return1, return2, return3
String return0 = (String) data.getSessionData("return0");
String return1 = (String) data.getSessionData("return1");
String return2 = (String) data.getSessionData("return2");
String return3 = (String) data.getSessionData("return3");
 
VPreference pref = data.getPreference();
VMain vxml = VMain.getNew(pref);
VForm form = VForm.getNew(pref);
VBlock block = VBlock.getNew(pref);
 
VAction var = VAction.getNew(pref, VAction.VARIABLE, "caller_input", "hangup", VForm.WITH_QUOTES); 
block.add(var);
VAction returnTag = null;
if(return0 != null){
VAction var0=VAction.getNew(pref, VAction.VARIABLE, "FromExtVXML0", return0, VForm.WITH_QUOTES); 
block.add(var0);
if(return1 != null){
VAction var1=VAction.getNew(pref, VAction.VARIABLE, "FromExtVXML1", return1, VForm.WITH_QUOTES);
block.add(var1);
if(return2 != null){
VAction var2=VAction.getNew(pref, VAction.VARIABLE, "FromExtVXML2", return2, VForm.WITH_QUOTES);
block.add(var2);
if(return3 != null){
VAction var3=VAction.getNew(pref, VAction.VARIABLE, "FromExtVXML3", return3, VForm.WITH_QUOTES);
block.add(var3); 
returnTag = VAction.getNew(pref, VAction.RETURN, "caller_input FromExtVXML0 FromExtVXML1 FromExtVXML2 FromExtVXML3");
} else{
returnTag = VAction.getNew(pref, VAction.RETURN, "caller_input FromExtVXML0 FromExtVXML1 FromExtVXML2");
} 
}else {
returnTag = VAction.getNew(pref, VAction.RETURN, "caller_input FromExtVXML0 FromExtVXML1");
} 
}else {
returnTag = VAction.getNew(pref, VAction.RETURN, "caller_input FromExtVXML0");
} 
}else {
returnTag = VAction.getNew(pref, VAction.RETURN, "caller_input");
}
 
block.add(returnTag);
 
form.add(block);
vxml.add(form);
 
data.setCustomVxmlResponse(vxml);
 
} catch (VException ex) { 
ex.printStackTrace();
}
}
}
} </summary>
    <dc:creator>Patrik Englund</dc:creator>
    <dc:date>2012-06-26T09:47:57Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to catch user hangup event in comprehensive mode</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=10572&amp;messageId=5900805" />
    <author>
      <name>Patrik Englund</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=10572&amp;messageId=5900805</id>
    <updated>2012-06-21T05:20:18Z</updated>
    <published>2012-06-21T05:20:18Z</published>
    <summary type="html">ANyone have an idea on how to achieve this? Have someone already solved this and have a custom java class to share if so? Im in really bad need for this solution.</summary>
    <dc:creator>Patrik Englund</dc:creator>
    <dc:date>2012-06-21T05:20:18Z</dc:date>
  </entry>
  <entry>
    <title>How to catch user hangup event in comprehensive mode</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=10572&amp;messageId=5881522" />
    <author>
      <name>Patrik Englund</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=10572&amp;messageId=5881522</id>
    <updated>2012-06-18T08:44:25Z</updated>
    <published>2012-06-18T08:44:16Z</published>
    <summary type="html">Hi
 
Im trying to figure out how to continue a vxml application script i a user hangs up. Specific im using the Record and Email element
that only works if i let the recording to time out on the gateway while on Record element, then i will receive the email with the voicemessage. This is not working if i hang up before the timeout kicks in. The voicemail .wav file is created locally on the cvp call server but i never get the email wit the file attached. Im using CVP 8.5. I have tried using both true and false on "Keep recording on hangup" but no difference. Does anyone have a suggestion?
It´s also hard to understand exactly how to use hotevent and/or action element to perhaps help out with this.
 
I looked at a similar thread on this forum but that was for standalone and version 7 of Cvp so i dont know how different that is versus CVP 8.5 and comprehensive.</summary>
    <dc:creator>Patrik Englund</dc:creator>
    <dc:date>2012-06-18T08:44:16Z</dc:date>
  </entry>
</feed>

