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

[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