Hi,
Steps for retriving the SessionID of the call is as follows
1. Define a variable Session_Info of datatype Session.
2. Define a long variable SessionID to store the Session number.
3. Use "Get Contact Info" step and set its properties as follows
Contact : Trigerring Contact
Attribue Session : Session_Info
4. Use "Get Session Info" step and set its properties as follows
Session : Session_Info
Identifier : SessionID
5. SessionID stores the value of the session number of the call.
For more details, refer the Cisco Editor Step Reference Guide
http://www.cisco.com/univercd/cc/td/doc/product/voice/sw_ap_to/apps_3_5/english/admn_app/step.pdf
Regards
Yogi