< Previous by Date Date Index Next by Date >
  Thread Index  

[reSIProcate] How to distinguish between different Session Handles


All,
 
I looking for a way to distinguish between the following handle types:
 
ServerInviteSession
ClientInviteSession
InviteSession
 
I understand how they are created, but I also persist these handles, by getId(), in a list. When retrieving one of these handles, I'm not sure what is the best way to distinguish which of the 3 handle types I'm looking at.
 
Should I be using isConnected(), IsEarly() and isAccepted() and if so which handle corresponds to which. Or is there some other way?
 
Thanks!!
 
Bill Kovar
Avaya Inc.
bkovar@xxxxxxxxx