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

Re: [reSIProcate] How to test existence of SDP in Sip msg


if (!proposed_offer)

 

 

From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Kovar, William (Bill)
Sent: Friday, August 25, 2006 3:50 PM
To: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
Subject: [reSIProcate] How to test existence of SDP in Sip msg

 

I'm trying to determine whether a msg has SDP in the onNewSession(...) callback and can't seem to get it to work.

SdpContents* proposed_offer;

proposed_offer = dynamic_cast<SdpContents*>(msg.getContents());

if (*proposed_offer == resip::SdpContents::Empty)

{
}

Above doesn't seem to be right...

Can someone help?

 

Bill Kovar

Avaya Inc.

(732) 852-2609

bkovar@xxxxxxxxx