[reSIProcate] SipMessage and RTP
Jason Fischl
jason at purplecomm.com
Mon Jan 17 13:18:31 CST 2005
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 at mirrorlynx.com]
> Sent: Sunday, January 16, 2005 12:15 AM
> To: resiprocate-devel at list.sipfoundry.org
> 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 at list.sipfoundry.org
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at list.sipfoundry.org
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
More information about the resiprocate-devel
mailing list