Ignore:
Timestamp:
May 9, 2016 3:29:28 AM (7 years ago)
Author:
ming
Message:

Fixed #1913: Add callback for address change notification from STUN keep alive

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r5217 r5282  
    680680        break; 
    681681    case PJ_ICE_STRANS_OP_KEEP_ALIVE: 
     682    case PJ_ICE_STRANS_OP_ADDR_CHANGE: 
    682683        if (result != PJ_SUCCESS) { 
    683684            PJ_PERROR(4,(THIS_FILE, result, 
     
    696697                call->index, &info); 
    697698        } 
    698         if (pjsua_var.ua_cfg.cb.on_ice_transport_error) { 
     699        if (pjsua_var.ua_cfg.cb.on_ice_transport_error && 
     700            op == PJ_ICE_STRANS_OP_KEEP_ALIVE) 
     701        { 
    699702            pjsua_call_id id = call->index; 
    700703            (*pjsua_var.ua_cfg.cb.on_ice_transport_error)(id, op, result, 
Note: See TracChangeset for help on using the changeset viewer.