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

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


That's what I'm using now !!! I was expecting something in the handle itself
to differentiate it rather than dynamic_casting every time. 

Thanks,
Vasanthi



-----Original Message-----
From: slgodin@xxxxxxxxx [mailto:slgodin@xxxxxxxxx] On Behalf Of Scott Godin
Sent: Friday, December 12, 2008 3:22 PM
To: Vasanthi
Cc: resiprocate-users@xxxxxxxxxxxxxxx
Subject: 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/
>

No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.9.16/1843 - Release Date: 12/11/2008
8:58 PM