Re: [reSIProcate] SipMessage and RTP
Scott Godin wrote:
Here is an example:
SdpContents sdp;
if(pMsg->exists(h_ContentType) && pMsg->getContents()->getType() ==
Mime("application", "sdp"))
{
sdp = *(dynamic_cast<SdpContents*>(pMsg->getContents()));
}
You can also do the following:
SdpContents* storedSdp =0;
...
SdpContents* sdp = dynamic_cast<SdpContents*>(pMsg->getContents());
if (sdp) // if SipMessage::getContents returns non null, there is sdp
{
storedSdp = sdp->clone();
]
Scott
-----Original Message-----
From: Dan Weber [mailto:dan@xxxxxxxxxxxxxx]
Sent: Sunday, January 16, 2005 12:15 AM
To: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
Subject: [reSIProcate] SipMessage and RTP
using the helper makeResponse, I've created a response to the siprequest
I have received after processing. Now what I'd like to do is store the
rtp information in the packet. What is the best way to do this?
Dan
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxxxxxx
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxxxxxx
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel