« Back to CVP - All Versions

CVP , send email after caller hung up

Combination View Flat View Tree View
Threads [ Previous | Next ]
Dear All
 
i give the caller in queu option to record his name and number , then send this record by email to agent , iface 2 issue :-
 
1- if the caller hungup directly after he record his name , the call hungup , the script stop working , then the email did not send
 
      So , how  i can send email after the call is hangup.
2- i can not send the recoding audio through email as attachemnt ,
 
 
Can any one kindly help me ASAP
 
Regards ,
 
 
 
 

This was answered recently on the forum.
http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/5881522

You'll have to write some custom java that executes at the End Of Call - which means it executes no matter how the call flow ends. You can determine how the call ended (eg, hangup) and send the email then.

Thanks a lot Janine ,

I can now run a class after hang up , but if i need to send email , is it required to wright class from scratch or i can use built in Email element ?

Other Q , can i run other application "already created from call studio " from java class executed at the End Of Call ?

Regarding to second Q in main thread , what is the correct format of path in attachment field in Email element


Thanks a lot for your support

If the caller hungup while recording the recording might not have gotten stored on the local drive, or wherever you are specifiying the recording be stored. You could check the path where you expect to find the file in your endcall class you are writing, if you find the file you can attach it. You are going to have to get the file name from somewhere, not sure what you are using for the file name but you'll have to reference it as element or session data in your endcall class to see if it exists. I

f the call ends your Studio app is done so you can't use the sendmail element, you have to use that referenced article Janine gave to get the java code to send an email, I use javax for it, pretty simple and google will produce lots of other methods. If the file exists you can attach it in the endcall class.

Bill Westby.