2007/6/27, Abhishek Tiwari <[EMAIL PROTECTED]>:
>    I have done some basic integration of ortp with sofia-sip and things seem
> to work fine. However when working with Cisco 7940 (SIP), it would send the
> media (m) attribute before the connection (c) in the SDP message. In
> parse_message (sdp_parse.c), there is assumption on the order of the
> attributes and if media (m) line is met, then parse_descs does all the work
> (including parsing connection line) and the function returns. With this
> sdp->sdp_media->m_connections is set, but sdp->sdp_connection is not set,
> which causes problems later. I could either check which one of these exists
> and then use appropriately, or set the sdp->sdp_connection before returning
> from parse_message. Doing the latter solves the problem for now, but is this
> the right way ? the assumption on the order of the attributes can easily
> break.

The c= line before the m= line is common to all media (if you have
video or something else in your session) and the c= line after a m=
line is specific to the media. So you should first check if the
m_connections is non-NULL and if so, use that c= line, otherwise, you
should use the sdp_connection.

-- 
Pekka.Pessi mail at nokia.com

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to