如何计算pjsip中的带宽消耗

时间:2013-01-10 07:10:26

标签: bandwidth pjsip

我看到Jitsi(使用jain-sip)可以在通话过程中显示带宽信息。

如何在pjsip中获取带宽信息?有没有回调或如何计算?

P / S:按带宽,I表示媒体层使用的实际带宽

更新 致电pjsua_call_dump时,我会收到此信息。这够计算吗?如果是,怎么样?

Call time: 00h:00m:06s, 1st res in 1592 ms, conn in 6512ms
    #0 audio PCMU @8kHz, sendrecv, peer=130.148.79.127:33380
       SRTP status: Not active Crypto-suite: (null)
       RX pt=0, last update:00h:00m:01.891s ago
          total 337pkt 53.9KB (67.4KB +IP hdr) @avg=62.5Kbps/78.1Kbps
          pkt loss=2 (0.6%), discrd=0 (0.0%), dup=0 (0.0%), reord=0 (0.0%)
                (msec)    min     avg     max     last    dev
          loss period:  20.000  20.000  20.000  20.000   0.000
          jitter     :   1.125  19.350  27.000  18.875   3.951
       TX pt=0, ptime=20, last update:00h:00m:02.260s ago
          total 344pkt 55.0KB (68.8KB +IP hdr) @avg=63.8Kbps/79.7Kbps
          pkt loss=2 (0.6%), dup=0 (0.0%), reorder=0 (0.0%)
                (msec)    min     avg     max     last    dev 
          loss period:  40.000  40.000  40.000  40.000   0.000
          jitter     :   0.000   7.375  14.750  14.750   7.375
       RTT msec      : 203.000 203.000 203.000 203.000   0.000

enter image description here

0 个答案:

没有答案