[reSIProcate] multipart/alternative content-type
Scott Godin
sgodin at sipspectrum.com
Mon May 16 13:18:14 CDT 2016
There is a great helper method for this. Check out resip/Helper.hxx/cxx
and the getSdp method. If it doesn't do exactly what you want, it's a
great starting ground for whatever you need.
Scott
On Thu, May 12, 2016 at 2:11 PM, Diego Carvalho Domingos <
ddomingos at daitangroup.com> wrote:
> Hi all,
>
> How do I access multiple SDP’s of an INVITE which the content-type is
> multipart/alternative? In my case the INVITE contains two SDP’s and for
> some reason, the way I get the SDP is getting the second one. For instance,
> in the onNewSession method:
> onNewSession(ClientInviteSessionHandle, InviteSession::OfferAnswerType
> oat, const SipMessage& msg)
> I do:
> SdpContents* contents = dynamic_cast<SdpContents*>(msg.getContents());
>
> Why this is getting me the second one? How do I access the first one? I
> saw that there is a subclass of Contents called
> MultipartAlternativeContents but I don’t think this is the one returned by
> getContents because if so the dynamic_cast would fail.
>
> I appreciate any help. Thanks in advance.
>
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at resiprocate.org
> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20160516/4718882f/attachment.htm>
More information about the resiprocate-devel
mailing list