Ignore:
Timestamp:
Oct 6, 2009 11:29:14 AM (15 years ago)
Author:
nanang
Message:

Ticket #964:

  • Fixed creating media answer in SDP negotation to just clone the offer (and update media direction) when media offer specifies port 0 (media inactive).
  • Added pjsua python test.
File:
1 edited

Legend:

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

    r2724 r2926  
    10071007    pj_str_t pt_amr_need_adapt = {NULL, 0}; 
    10081008 
     1009    /* If offer has zero port, just clone the offer and update direction */ 
     1010    if (offer->desc.port == 0) { 
     1011        answer = pjmedia_sdp_media_clone(pool, offer); 
     1012        remove_all_media_directions(answer); 
     1013        update_media_direction(pool, offer, answer); 
     1014        *p_answer = answer; 
     1015        return PJ_SUCCESS; 
     1016    } 
     1017 
    10091018    /* Set master/slave negotiator based on prefer_remote_codec_order. */ 
    10101019    if (prefer_remote_codec_order) { 
     
    12191228    answer->desc.fmt_count = pt_answer_count; 
    12201229 
    1221     /* If offer has zero port, set our answer with zero port too */ 
    1222     if (offer->desc.port == 0) 
    1223         answer->desc.port = 0; 
    1224  
    12251230    /* Update media direction. */ 
    12261231    update_media_direction(pool, offer, answer); 
Note: See TracChangeset for help on using the changeset viewer.