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-apps/src/pjsua/pjsua_app.c

    r3183 r3212  
    29102910 
    29112911/* 
     2912 * Notification on ICE error. 
     2913 */ 
     2914static void on_ice_transport_error(int index, pj_ice_strans_op op, 
     2915                                   pj_status_t status, void *param) 
     2916{ 
     2917    PJ_UNUSED_ARG(op); 
     2918    PJ_UNUSED_ARG(param); 
     2919    PJ_PERROR(1,(THIS_FILE, status, 
     2920                 "ICE keep alive failure for transport %d", index)); 
     2921} 
     2922 
     2923/* 
    29122924 * Print buddy list. 
    29132925 */ 
     
    45064518    app_config.cfg.cb.on_mwi_info = &on_mwi_info; 
    45074519    app_config.cfg.cb.on_transport_state = &on_transport_state; 
     4520    app_config.cfg.cb.on_ice_transport_error = &on_ice_transport_error; 
    45084521    app_config.log_cfg.cb = log_cb; 
    45094522 
Note: See TracChangeset for help on using the changeset viewer.