Changeset 2957 for pjproject


Ignore:
Timestamp:
Oct 20, 2009 2:44:00 PM (15 years ago)
Author:
bennylp
Message:

Fixed ticket #977: ICE does not change role to Controlling when talking to ice-lite agents (thanks Amaresh Marekar for the report)

File:
1 edited

Legend:

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

    r2945 r2957  
    11481148 
    11491149    /* Validate media transport */ 
    1150     /* For now, this transport only support RTP/AVP transport */ 
     1150    /* This transport only support RTP/AVP transport, unless if 
     1151     * transport checking is disabled 
     1152     */ 
    11511153    if ((tp_ice->media_option & PJMEDIA_TPMED_NO_TRANSPORT_CHECKING) == 0) { 
    11521154        pjmedia_sdp_media *loc_m, *rem_m; 
     
    14111413        } 
    14121414 
     1415        /* Ticket #977: Update role if turns out we're supposed to be the  
     1416         * Controlling agent (e.g. when talking to ice-lite peer).  
     1417         */ 
     1418        if (tp_ice->rem_offer_state.local_role==PJ_ICE_SESS_ROLE_CONTROLLING && 
     1419            pj_ice_strans_has_sess(tp_ice->ice_st))  
     1420        { 
     1421            pj_ice_strans_change_role(tp_ice->ice_st,  
     1422                                      PJ_ICE_SESS_ROLE_CONTROLLING); 
     1423        } 
     1424 
     1425 
    14131426        /* start ICE */ 
    14141427    } 
Note: See TracChangeset for help on using the changeset viewer.