Hi,
  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.

this is the change in parse_message:

   case 'm':
     parse_descs(p, record, message, &sdp->sdp_media);
     if (sdp->sdp_connection == NULL)
         sdp->sdp_connection = sdp->sdp_media->m_connections;
     post_session(p, sdp);
     return;


-Abhishek Tiwari
-------------------------------------------------------------------------
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