Ignore:
Timestamp:
Sep 20, 2010 6:13:02 AM (11 years ago)
Author:
nanang
Message:

Closed #1129:

  • Added run-time configuration for activating/deactivating stream keep-alive (non-codec-VAD mechanism), also added this config to account settings.
  • Fixed bug wrong session info pointer "si" in pjsua_media_channel_update() when call audio index is not zero.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/stream.c

    r3292 r3313  
    198198 
    199199#if defined(PJMEDIA_STREAM_ENABLE_KA) && PJMEDIA_STREAM_ENABLE_KA!=0 
     200    pj_bool_t                use_ka;           /**< Stream keep-alive with non- 
     201                                                    codec-VAD mechanism is 
     202                                                    enabled?                */ 
    200203    pj_timestamp             last_frm_ts_sent; /**< Timestamp of last sending 
    201204                                                    packet                  */ 
     
    11241127     * PJMEDIA_STREAM_KA_INTERVAL, send keep-alive packet. 
    11251128     */ 
     1129    if (stream->use_ka) 
    11261130    { 
    11271131        pj_uint32_t dtx_duration; 
     
    19741978    stream->jb_last_frm = PJMEDIA_JB_NORMAL_FRAME; 
    19751979 
     1980#if defined(PJMEDIA_STREAM_ENABLE_KA) && PJMEDIA_STREAM_ENABLE_KA!=0 
     1981    stream->use_ka = info->use_ka; 
     1982#endif 
     1983 
    19761984    /* Build random RTCP CNAME. CNAME has user@host format */ 
    19771985    stream->cname.ptr = p = (char*) pj_pool_alloc(pool, 20); 
     
    22852293#if defined(PJMEDIA_STREAM_ENABLE_KA) && PJMEDIA_STREAM_ENABLE_KA!=0 
    22862294    /* NAT hole punching by sending KA packet via RTP transport. */ 
    2287     send_keep_alive_packet(stream); 
     2295    if (stream->use_ka) 
     2296        send_keep_alive_packet(stream); 
    22882297#endif 
    22892298 
Note: See TracChangeset for help on using the changeset viewer.