Ignore:
Timestamp:
Dec 9, 2011 7:19:25 AM (12 years ago)
Author:
bennylp
Message:

Fixed #1416: Allow application to send data after ICE negotiation fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjmedia/src/pjmedia/transport_ice.c

    r3745 r3906  
    403403     * new ufrag/pwd pair. 
    404404     */ 
    405     if (!restart_session && pj_ice_strans_sess_is_complete(tp_ice->ice_st)) { 
     405    if (!restart_session && pj_ice_strans_sess_is_complete(tp_ice->ice_st) && 
     406        pj_ice_strans_get_state(tp_ice->ice_st) != PJ_ICE_STRANS_STATE_FAILED) 
     407    { 
    406408        const pj_ice_sess_check *check; 
    407409        char *attr_buf; 
     
    533535        } 
    534536 
    535     } else if (pj_ice_strans_has_sess(tp_ice->ice_st)) { 
     537    } else if (pj_ice_strans_has_sess(tp_ice->ice_st) && 
     538               pj_ice_strans_get_state(tp_ice->ice_st) != 
     539                        PJ_ICE_STRANS_STATE_FAILED) 
     540    { 
    536541        /* Encode all candidates to SDP media */ 
    537542        char *attr_buf; 
Note: See TracChangeset for help on using the changeset viewer.