Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Session ID

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?

6 REPLIES

Re: Session ID

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

Tanner Ezell www.ctilogic.com
New Member

Re: Session ID

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)

Super Bronze

Re: Session ID

Hi

It's substring, not subString - java is all case sensitive.

Regards

Aaron

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

Re: Session ID

My apologies, a Session variable named SessionID, not String.

Tanner Ezell www.ctilogic.com
New Member

Re: Session ID

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.

Re: Session ID

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

Tanner Ezell www.ctilogic.com
498
Views
0
Helpful
6
Replies