@@ -370,6 +370,9 @@ void StreamInfo::fromPj(const pjsua_stream_info &info)
370370 jbDiscardAlgo = info.info .aud .jb_discard_algo ;
371371#if defined(PJMEDIA_STREAM_ENABLE_KA) && (PJMEDIA_STREAM_ENABLE_KA != 0)
372372 useKa = PJ2BOOL (info.info .aud .use_ka );
373+ startCountKa = info.info .aud .ka_cfg .start_count ;
374+ startIntervalKa = info.info .aud .ka_cfg .start_interval ;
375+ intervalKa = info.info .aud .ka_cfg .ka_interval ;
373376#endif
374377 rtcpSdesByeDisabled = PJ2BOOL (info.info .aud .rtcp_sdes_bye_disabled );
375378 } else if (type == PJMEDIA_TYPE_VIDEO) {
@@ -391,6 +394,9 @@ void StreamInfo::fromPj(const pjsua_stream_info &info)
391394 jbDiscardAlgo = PJMEDIA_JB_DISCARD_NONE;
392395#if defined(PJMEDIA_STREAM_ENABLE_KA) && (PJMEDIA_STREAM_ENABLE_KA != 0)
393396 useKa = PJ2BOOL (info.info .vid .use_ka );
397+ startCountKa = info.info .vid .ka_cfg .start_count ;
398+ startIntervalKa = info.info .vid .ka_cfg .start_interval ;
399+ intervalKa = info.info .vid .ka_cfg .ka_interval ;
394400#endif
395401 rtcpSdesByeDisabled = PJ2BOOL (info.info .vid .rtcp_sdes_bye_disabled );
396402 } else if (type == PJMEDIA_TYPE_TEXT) {
@@ -411,6 +417,9 @@ void StreamInfo::fromPj(const pjsua_stream_info &info)
411417 jbDiscardAlgo = PJMEDIA_JB_DISCARD_NONE;
412418#if defined(PJMEDIA_STREAM_ENABLE_KA) && (PJMEDIA_STREAM_ENABLE_KA != 0)
413419 useKa = PJ2BOOL (info.info .txt .use_ka );
420+ startCountKa = info.info .txt .ka_cfg .start_count ;
421+ startIntervalKa = info.info .txt .ka_cfg .start_interval ;
422+ intervalKa = info.info .txt .ka_cfg .ka_interval ;
414423#endif
415424 rtcpSdesByeDisabled = PJ2BOOL (info.info .txt .rtcp_sdes_bye_disabled );
416425 }
0 commit comments