[reSIProcate] InviteSession::getLocalSdp undefined return if mCurrentLocalSdp not set?

Justin Matthews justin.matthews at ivr.com
Tue Oct 18 10:01:40 CDT 2005


Hi,

 

Calling getLocalSdp on an InviteSession returns a de-referenced auto_ptr,
but if it hasn't been set to anything yet errors will occur (also would
occur for getRemoteSdp).

 

Would something like this fix this situation, or am I missing something?

 

InviteSession::InviteSession(DialogUsageManager& dum, Dialog& dialog)

   : DialogUsage(dum, dialog),

     mState(Undefined),

     mNitState(NitComplete),

     mCurrentRetransmit200(0),

     mSessionInterval(0),

     mMinSE(90), 

     mSessionRefresher(false),

     mSessionTimerSeq(0),

     mSentRefer(false),

     mCurrentEncryptionLevel(DialogUsageManager::None),

     mProposedEncryptionLevel(DialogUsageManager::None),

       mCurrentLocalSdp(auto_ptr<SdpContents>(new SdpContents()),

mCurrentRemoteSdp(auto_ptr<SdpContents>(new SdpContents()))

 

Thanks,

 

-Justin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20051018/c4bd5fed/attachment.htm>


More information about the resiprocate-devel mailing list