Ignore:
Timestamp:
Aug 16, 2018 2:56:52 AM (4 years ago)
Author:
nanang
Message:

Fix #2138:

  • Updated ICE STUN & host candidates generation to be more forgiving on errors, i.e: continue gathering candidates using any available data instead of returning error.
  • Added more logs for debugging.
File:
1 edited

Legend:

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

    r5843 r5861  
    928928 
    929929            /* Configure STUN server */ 
    930             if (pj_sockaddr_has_addr(&pjsua_var.stun_srv) && 
    931                 pjsua_media_acc_is_using_stun(call_med->call->acc_id)) 
     930            if (pjsua_media_acc_is_using_stun(call_med->call->acc_id) && 
     931                pj_sockaddr_has_addr(&pjsua_var.stun_srv) && 
     932                pjsua_var.stun_srv.addr.sa_family == ice_cfg.stun_tp[i].af) 
    932933            { 
    933934                ice_cfg.stun_tp[i].server = pj_str(stunip); 
Note: See TracChangeset for help on using the changeset viewer.