Ignore:
Timestamp:
Jun 4, 2010 1:41:34 PM (14 years ago)
Author:
nanang
Message:

Re #668:

  • Fixed process_answer() of SDP negotiation, when no common format in a media, instead of returning error, it should just deactivate the media (offer & answer) and continue negotiating next media.
  • Generalized the way of deactivating media: set port to 0 and remove all attributes.
  • Added new API pjmedia_sdp_media_clone_deactivate() to clone media and deactivate the newly cloned media.
  • Updated PJMEDIA SDP negotiation test.
File:
1 edited

Legend:

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

    r2995 r3198  
    532532 
    533533 
     534/** 
     535 * Clone SDP media description and deactivate the new SDP media. 
     536 * 
     537 * @param rhs       The SDP media to clone. 
     538 * 
     539 * @return          New media descrption with deactivated indication. 
     540 */ 
     541PJ_DECL(pjmedia_sdp_media*) pjmedia_sdp_media_clone_deactivate( 
     542                                                pj_pool_t *pool, 
     543                                                const pjmedia_sdp_media *rhs); 
     544 
     545 
    534546/* ************************************************************************** 
    535547 * SDP SESSION DESCRIPTION 
Note: See TracChangeset for help on using the changeset viewer.