Ignore:
Timestamp:
Sep 11, 2008 6:43:59 PM (16 years ago)
Author:
nanang
Message:

Ticket #616: Updated ICE transport to have a default option to switch RTP transmission to source address if remote doesn't use ICE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/transport_ice.h

    r2039 r2276  
    6363 
    6464/** 
     65 * Options that can be specified when creating ICE transport. 
     66 */ 
     67enum pjmedia_transport_ice_options 
     68{ 
     69    /** 
     70     * Normally when remote doesn't use ICE, the ICE transport will  
     71     * continuously check the source address of incoming packets to see  
     72     * if it is different than the configured remote address, and switch  
     73     * the remote address to the source address of the packet if they  
     74     * are different after several packets are received. 
     75     * Specifying this option will disable this feature. 
     76     */ 
     77    PJMEDIA_ICE_NO_SRC_ADDR_CHECKING = 1 
     78}; 
     79 
     80 
     81/** 
    6582 * Create the Interactive Connectivity Establishment (ICE) media transport 
    6683 * using the specified configuration. When STUN or TURN (or both) is used, 
     
    95112                                        pjmedia_transport **p_tp); 
    96113 
     114 
     115/** 
     116 * The same as @pjmedia_ice_create with additional \a options param. 
     117 * 
     118 * @param endpt         The media endpoint. 
     119 * @param name          Optional name to identify this ICE media transport 
     120 *                      for logging purposes. 
     121 * @param comp_cnt      Number of components to be created. 
     122 * @param cfg           Pointer to configuration settings. 
     123 * @param cb            Optional structure containing ICE specific callbacks. 
     124 * @param options       Options, see #pjmedia_transport_ice_options. 
     125 * @param p_tp          Pointer to receive the media transport instance. 
     126 * 
     127 * @return              PJ_SUCCESS on success, or the appropriate error code. 
     128 */ 
     129PJ_DECL(pj_status_t) pjmedia_ice_create2(pjmedia_endpt *endpt, 
     130                                         const char *name, 
     131                                         unsigned comp_cnt, 
     132                                         const pj_ice_strans_cfg *cfg, 
     133                                         const pjmedia_ice_cb *cb, 
     134                                         unsigned options, 
     135                                         pjmedia_transport **p_tp); 
     136 
    97137PJ_END_DECL 
    98138 
Note: See TracChangeset for help on using the changeset viewer.