Ignore:
Timestamp:
Feb 21, 2013 8:49:19 PM (11 years ago)
Author:
nanang
Message:

Close #1625: Introduced new API pjmedia_sdp_validate2() for allowing SDP media without c= line when port is zero, currently it is only applied in validating remote SDP.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/sdp.h

    r3945 r4367  
    687687 
    688688/** 
     689 * Perform semantic validation for the specified SDP session descriptor. 
     690 * This function perform validation beyond just syntactic verification, 
     691 * such as to verify the value of network type and address type, check 
     692 * the connection line, and verify that \a rtpmap attribute is present 
     693 * when dynamic payload type is used. 
     694 * 
     695 * @param sdp       The SDP session descriptor to validate. 
     696 * @param strict    Flag whether the check should be strict, i.e: allow 
     697 *                  media without connection line when port is zero. 
     698 * 
     699 * @return          PJ_SUCCESS on success. 
     700 */ 
     701PJ_DECL(pj_status_t) pjmedia_sdp_validate2(const pjmedia_sdp_session *sdp, 
     702                                           pj_bool_t strict); 
     703 
     704 
     705/** 
    689706 * Clone SDP session descriptor. 
    690707 * 
Note: See TracChangeset for help on using the changeset viewer.