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

Re: [reSIProcate-users] differentiating Server and Client Invite Sessions from handle


You can use dynamic_cast:

For example:
         ServerInviteSession* sis =
dynamic_cast<ServerInviteSession*>(inviteSessionHandle.get());
         if(sis && !sis->isAccepted())

Scott


On Fri, Dec 12, 2008 at 2:44 PM, Vasanthi <vasanthi@xxxxxxxxx> wrote:
> Is there a "simpler" way to differentiate ServerInviteSession and
> ClientInviteSession using InviteSessionHandle ? For example, in
> "OnAnswer()", I would like to know what kind of invite sessions I'm dealing
> with, a server or client. I'm dealing with a system which can act as UAC and
> UAS.
>
> -Vasanthi
>
>
>
> _______________________________________________
> resiprocate-users mailing list
> resiprocate-users@xxxxxxxxxxxxxxx
> List Archive: http://list.resiprocate.org/archive/resiprocate-users/
>