Ignore:
Timestamp:
Oct 14, 2009 1:13:18 PM (15 years ago)
Author:
bennylp
Message:

Ticket #881: send UPDATE or re-INVITE after ICE negotiation, if the default candidate has changed

  • done
  • added pj_ice_strans_state (to be used for informational purposes for now)
  • added pjmedia ICE transport specific info, and display it in call dump output
  • misc fixes (changed pjmedia_transport_info.spec_info_cnt from int to unsigned)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/include/pjnath/ice_strans.h

    r2724 r2945  
    328328 
    329329 
     330/** 
     331 * ICE stream transport's state. 
     332 */ 
     333typedef enum pj_ice_strans_state 
     334{ 
     335    /** 
     336     * ICE stream transport is not created. 
     337     */ 
     338    PJ_ICE_STRANS_STATE_NULL, 
     339 
     340    /** 
     341     * ICE candidate gathering process is in progress. 
     342     */ 
     343    PJ_ICE_STRANS_STATE_INIT, 
     344 
     345    /** 
     346     * ICE stream transport initialization/candidate gathering process is 
     347     * complete, ICE session may be created on this stream transport. 
     348     */ 
     349    PJ_ICE_STRANS_STATE_READY, 
     350 
     351    /** 
     352     * New session has been created and the session is ready. 
     353     */ 
     354    PJ_ICE_STRANS_STATE_SESS_READY, 
     355 
     356    /** 
     357     * ICE negotiation is in progress. 
     358     */ 
     359    PJ_ICE_STRANS_STATE_NEGO, 
     360 
     361    /** 
     362     * ICE negotiation has completed successfully and media is ready 
     363     * to be used. 
     364     */ 
     365    PJ_ICE_STRANS_STATE_RUNNING, 
     366 
     367    /** 
     368     * ICE negotiation has completed with failure. 
     369     */ 
     370    PJ_ICE_STRANS_STATE_FAILED 
     371 
     372} pj_ice_strans_state; 
     373 
     374 
    330375/**  
    331376 * Initialize ICE transport configuration with default values. 
     
    370415                                          const pj_ice_strans_cb *cb, 
    371416                                          pj_ice_strans **p_ice_st); 
     417 
     418/** 
     419 * Get ICE session state. 
     420 * 
     421 * @param ice_st        The ICE stream transport. 
     422 * 
     423 * @return              ICE session state. 
     424 */ 
     425PJ_DECL(pj_ice_strans_state) pj_ice_strans_get_state(pj_ice_strans *ice_st); 
     426 
     427 
     428/** 
     429 * Get string representation of ICE state. 
     430 * 
     431 * @param state         ICE stream transport state. 
     432 * 
     433 * @return              String. 
     434 */ 
     435PJ_DECL(const char*) pj_ice_strans_state_name(pj_ice_strans_state state); 
     436 
    372437 
    373438/** 
Note: See TracChangeset for help on using the changeset viewer.