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/include/pjsua-lib/pjsua.h

    r3196 r3212  
    850850    pjsip_tp_state_callback on_transport_state; 
    851851 
     852    /** 
     853     * This callback is called to report error in ICE media transport. 
     854     * Currently it is used to report TURN Refresh error. 
     855     * 
     856     * @param index     Transport index. 
     857     * @param op        Operation which trigger the failure. 
     858     * @param status    Error status. 
     859     * @param param     Additional info about the event. Currently this will 
     860     *                  always be set to NULL. 
     861     */ 
     862    void (*on_ice_transport_error)(int index, pj_ice_strans_op op, 
     863                                   pj_status_t status, void *param); 
     864 
    852865} pjsua_callback; 
    853866 
Note: See TracChangeset for help on using the changeset viewer.