Changeset 3195


Ignore:
Timestamp:
Jun 3, 2010 3:06:03 AM (9 years ago)
Author:
nanang
Message:

Fix #1073:

  • Fixed SDP negotiation in processing answer: when the answer has less media count, generate disabled-media to match the media count.
  • Added python test.
Location:
pjproject/trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/sdp_neg.c

    r3192 r3195  
    10081008    for (; omi<offer->media_count; ++omi) { 
    10091009        if (ami == answer->media_count) { 
     1010            /* The answer has less media than the offer */ 
     1011            pjmedia_sdp_media *am; 
     1012 
     1013            /* Generate matching-but-disabled-media for the answer */ 
     1014            am = pjmedia_sdp_media_clone(pool, offer->media[omi]); 
     1015            am->desc.port = 0; 
     1016            answer->media[answer->media_count++] = am; 
     1017            ++ami; 
     1018 
    10101019            /* No answer media to be negotiated */ 
    10111020            offer->media[omi]->desc.port = 0; 
Note: See TracChangeset for help on using the changeset viewer.