Ignore:
Timestamp:
Sep 20, 2010 6:13:02 AM (14 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/pjsip/src/pjsua-lib/pjsua_media.c

    r3219 r3313  
    15461546    /* Reset session info with only one media stream */ 
    15471547    sess_info.stream_cnt = 1; 
    1548     if (si != &sess_info.stream_info[0]) 
     1548    if (si != &sess_info.stream_info[0]) { 
    15491549        pj_memcpy(&sess_info.stream_info[0], si, sizeof(pjmedia_stream_info)); 
     1550        si = &sess_info.stream_info[0]; 
     1551    } 
    15501552 
    15511553    /* Check if no media is active */ 
     
    16381640        si->rtp_seq = call->rtp_tx_seq; 
    16391641        si->rtp_seq_ts_set = call->rtp_tx_seq_ts_set; 
     1642 
     1643#if defined(PJMEDIA_STREAM_ENABLE_KA) && PJMEDIA_STREAM_ENABLE_KA!=0 
     1644        /* Enable/disable stream keep-alive and NAT hole punch. */ 
     1645        si->use_ka = pjsua_var.acc[call->acc_id].cfg.use_stream_ka; 
     1646#endif 
    16401647 
    16411648        /* Create session based on session info. */ 
Note: See TracChangeset for help on using the changeset viewer.