summaryrefslogtreecommitdiff
path: root/pjsip/src
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2010-07-15 14:45:47 +0000
committerNanang Izzuddin <nanang@teluu.com>2010-07-15 14:45:47 +0000
commit2493e2b525ad94e031c40acb5506fc5e1cd99266 (patch)
treeaafa1ee1b295d5d861eec710d5321d06ac47d365 /pjsip/src
parentf086c93150a5743a95a71779c4739c2b151aea2f (diff)
Re #1103:
- Added (back) raw jitter statistics into RTCP statistics, with the new name "rx_raw_jitter". - Added IPDV statistics into RTCP statistics. - Added new compile-time settings to enable/disable raw jitter and IPDV statistics. - Updated call dump in pjsua-lib. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3239 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src')
-rw-r--r--pjsip/src/pjsua-lib/pjsua_call.c27
1 files changed, 26 insertions, 1 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_call.c b/pjsip/src/pjsua-lib/pjsua_call.c
index 7fce1e44..8b695adf 100644
--- a/pjsip/src/pjsua-lib/pjsua_call.c
+++ b/pjsip/src/pjsua-lib/pjsua_call.c
@@ -2247,7 +2247,16 @@ static void dump_media_session(const char *indent,
"%s pkt loss=%d (%3.1f%%), discrd=%d (%3.1f%%), dup=%d (%2.1f%%), reord=%d (%3.1f%%)\n"
"%s (msec) min avg max last dev\n"
"%s loss period: %7.3f %7.3f %7.3f %7.3f %7.3f\n"
- "%s jitter : %7.3f %7.3f %7.3f %7.3f %7.3f%s",
+ "%s jitter : %7.3f %7.3f %7.3f %7.3f %7.3f"
+#if defined(PJMEDIA_RTCP_STAT_HAS_RAW_JITTER) && PJMEDIA_RTCP_STAT_HAS_RAW_JITTER!=0
+ "\n"
+ "%s raw jitter : %7.3f %7.3f %7.3f %7.3f %7.3f"
+#endif
+#if defined(PJMEDIA_RTCP_STAT_HAS_IPDV) && PJMEDIA_RTCP_STAT_HAS_IPDV!=0
+ "\n"
+ "%s IPDV : %7.3f %7.3f %7.3f %7.3f %7.3f"
+#endif
+ "%s",
indent, info.stream_info[i].fmt.pt,
last_update,
indent,
@@ -2277,6 +2286,22 @@ static void dump_media_session(const char *indent,
stat.rx.jitter.max / 1000.0,
stat.rx.jitter.last / 1000.0,
pj_math_stat_get_stddev(&stat.rx.jitter) / 1000.0,
+#if defined(PJMEDIA_RTCP_STAT_HAS_RAW_JITTER) && PJMEDIA_RTCP_STAT_HAS_RAW_JITTER!=0
+ indent,
+ stat.rx_raw_jitter.min / 1000.0,
+ stat.rx_raw_jitter.mean / 1000.0,
+ stat.rx_raw_jitter.max / 1000.0,
+ stat.rx_raw_jitter.last / 1000.0,
+ pj_math_stat_get_stddev(&stat.rx_raw_jitter) / 1000.0,
+#endif
+#if defined(PJMEDIA_RTCP_STAT_HAS_IPDV) && PJMEDIA_RTCP_STAT_HAS_IPDV!=0
+ indent,
+ stat.rx_ipdv.min / 1000.0,
+ stat.rx_ipdv.mean / 1000.0,
+ stat.rx_ipdv.max / 1000.0,
+ stat.rx_ipdv.last / 1000.0,
+ pj_math_stat_get_stddev(&stat.rx_ipdv) / 1000.0,
+#endif
""
);