Ignore:
Timestamp:
Jan 20, 2007 5:18:14 AM (17 years ago)
Author:
bennylp
Message:

Implement ticket #56: Periodically transmit RTP packet on silence, to maintain NAT binding etc.

File:
1 edited

Legend:

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

    r868 r888  
    175175 * Specify how long (in miliseconds) the stream should suspend the 
    176176 * silence detector/voice activity detector (VAD) during the initial 
    177  * period of the session. 
     177 * period of the session. This feature is useful to open bindings in 
     178 * all NAT routers between local and remote endpoint since most NATs 
     179 * do not allow incoming packet to get in before local endpoint sends 
     180 * outgoing packets. 
    178181 * 
    179182 * Specify zero to disable this feature. 
    180183 * 
    181  * Default: 600 msec 
     184 * Default: 600 msec (which gives good probability that some RTP  
     185 *                    packets will reach the destination, but without 
     186 *                    filling up the jitter buffer on the remote end). 
    182187 */ 
    183188#ifndef PJMEDIA_STREAM_VAD_SUSPEND_MSEC 
    184189#   define PJMEDIA_STREAM_VAD_SUSPEND_MSEC      600 
     190#endif 
     191 
     192 
     193/** 
     194 * Specify the maximum duration of silence period in the codec.  
     195 * This is useful for example to keep NAT binding open in the firewall 
     196 * and to prevent server from disconnecting the call because no  
     197 * RTP packet is received. 
     198 * 
     199 * This only applies to codecs that use PJMEDIA's VAD (pretty much 
     200 * everything including iLBC, except Speex, which has its own DTX  
     201 * mechanism). 
     202 * 
     203 * Use (-1) to disable this feature. 
     204 * 
     205 * Default: 8000 (one second on 8KHz). 
     206 * 
     207 */ 
     208#ifndef PJMEDIA_CODEC_MAX_SILENCE_PERIOD 
     209#   define PJMEDIA_CODEC_MAX_SILENCE_PERIOD     8000 
    185210#endif 
    186211 
Note: See TracChangeset for help on using the changeset viewer.