07-12-2010 10:55 AM - edited 03-14-2019 06:03 AM
As part of a project we have going on, I am attempting to extract the session ID from a phone call and store it in a variable. What I have done is use a "Get Contact Info" step and using the "Session" field. However, the info I'm getting from this field does not match the SessionID field of the ContactCallDetail table of the database. What is the Session field under the Get Contact Info step really giving me?
07-12-2010 12:41 PM
I have attached (assuming the web-reply feature allows it) a document
I created that covers your issue. Specifically of value to you:
assume you store your session information into a string called SessionID
int.valueOf(SessionID.toString().subString(17,25), 16)
Which will extract the hexadecimal session id and convert it into base 10.
Cheers,
Tanner Ezell
On Mon, Jul 12, 2010 at 1:56 PM, tcapo@suarez.com
07-13-2010 12:28 PM
Thank you so much for your input. However, I'm getting error when inputing this: int.valueOf(sessionID.toString().subString(17,25),16). The error states: Unable to parse expression; undefined method: substring for class: java.lang.String (line:1, col: 13)
07-13-2010 02:25 PM
Hi
It's substring, not subString - java is all case sensitive.
Regards
Aaron
07-12-2010 12:42 PM
My apologies, a Session variable named SessionID, not String.
05-21-2013 08:01 AM
Sorry to bring back such an old thread, but the calculation suggested does not seem to be right. It only returns a 9 digit result when it should be 12 digits. If you put the sessioID into an online hex to decimal converter it returns a value completely different from the formula suggested.
05-21-2013 08:22 AM
Yes, this seems to have changed since the posting.
You can more accurately get the SessionId by capturing the "Session" from Get Contact Info Step, and then pulling the "Identifier" from Get Session Info Step.
HTH
Tanner
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide