BOSH: How to get RID and SID of the created session in openfire by Smack?

Hi everybody,

I am using smack 4.1.9 in my server-side application in order to log in to openfire server behind the scene. Then I need to send RID and SID to my client-side application to be used in strophe.js library for pre-binding.

I can log in to openfire(on the server-side) via Smack successfully, but how can I get access to SID and specially RID in Smack?

Thanks for your response in advance.

Shahin