process_m_answer in sdp_neg.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm trying to use the SDP negotiation part of pjmedia to process SDP  
related to MSRP (RFC 4975), but ran into some issues when it tried to  
complete the negotiation procedure. The process_m_answer function  
assumes that the formats in the m= line are integers and starts  
looking for rtpmap attributes, while for MSRP the formats aren't  
actually used and are set to a single "*".

Maybe there should be a check to see if the protocol field (called  
transport in pjsip) starts with RTP, as RFC 4566 states:

       If the <proto> sub-field is "RTP/AVP" or "RTP/SAVP" the <fmt>
       sub-fields contain RTP payload type numbers.

But also:

       If the <proto> sub-field is "udp" the <fmt> sub-fields MUST
       reference a media type describing the format under the "audio",
       "video", "text", "application", or "message" top-level media
       types.

       ...

       For media using other transport protocols, the <fmt> field is
       protocol specific.

But then the question is, how would pjmedia declare the negotiation to  
have succeeded?

Ruud Klaver
AG Projects



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux