Ignore:
Timestamp:
Jun 19, 2010 12:35:33 PM (14 years ago)
Author:
bennylp
Message:

Fixed #1077: In ICE stream transport (ice_strans.c), automaticaly retry allocation once if TURN allocation fails. If this allocation retry also fails, notify the TURN user via on_ice_complete() callback. Details:

  • added new PJ_ICE_STRANS_OP_KEEP_ALIVE operation
  • also added new on_ice_transport_error() pjsua callback to allow application to react to the failure.
File:
1 edited

Legend:

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

    r3198 r3212  
    861861                pjsua_call_update(id, 0, NULL); 
    862862            } 
     863        } 
     864        break; 
     865    case PJ_ICE_STRANS_OP_KEEP_ALIVE: 
     866        if (result != PJ_SUCCESS) { 
     867            PJ_PERROR(4,(THIS_FILE, result, 
     868                         "ICE keep alive failure for transport %d", id)); 
     869        } 
     870        if (pjsua_var.ua_cfg.cb.on_ice_transport_error) { 
     871            (*pjsua_var.ua_cfg.cb.on_ice_transport_error)(id, op, result, 
     872                                                          NULL); 
    863873        } 
    864874        break; 
Note: See TracChangeset for help on using the changeset viewer.