PortSIP VoIP SDK Manual for Mac  15.1
PortSIP features our newest, supported, quality-assured VoIP SDK used by Several hundred companies around the world for easy VoIP application develop and quality-assured code.
Functions
RTP statistics functions

Functions

(int) - PortSIPSDK::getNetworkStatistics:currentBufferSize:preferredBufferSize:currentPacketLossRate:currentDiscardRate:currentExpandRate:currentPreemptiveRate:currentAccelerateRate:
 Get the "in-call" statistics. The statistics are reset after the query. More...
 
(int) - PortSIPSDK::getAudioRtpStatistics:averageJitterMs:maxJitterMs:discardedPackets:
 Obtain the RTP statistics of audio channel. More...
 
(int) - PortSIPSDK::getAudioRtcpStatistics:bytesSent:packetsSent:bytesReceived:packetsReceived:sendFractionLost:sendCumulativeLost:recvFractionLost:recvCumulativeLost:roundTripTime:
 Obtain the RTCP statistics of audio channel. More...
 
(int) - PortSIPSDK::getVideoRtpStatistics:bytesSent:packetsSent:bytesReceived:packetsReceived:
 Obtain the RTP statistics of video. More...
 

Detailed Description

Function Documentation

§ getNetworkStatistics:currentBufferSize:preferredBufferSize:currentPacketLossRate:currentDiscardRate:currentExpandRate:currentPreemptiveRate:currentAccelerateRate:()

- (int) getNetworkStatistics: (long)  sessionId
currentBufferSize: (int *)  currentBufferSize
preferredBufferSize: (int *)  preferredBufferSize
currentPacketLossRate: (int *)  currentPacketLossRate
currentDiscardRate: (int *)  currentDiscardRate
currentExpandRate: (int *)  currentExpandRate
currentPreemptiveRate: (int *)  currentPreemptiveRate
currentAccelerateRate: (int *)  currentAccelerateRate 

Get the "in-call" statistics. The statistics are reset after the query.

Parameters
sessionIdThe session ID of call conversation.
currentBufferSizeCurrent jitter buffer size in ms.
preferredBufferSizePreferred buffer size in ms.
currentPacketLossRateLoss rate (network + late) in percentage.
currentDiscardRateFraction of synthesized speech inserted through pre-emptive expansion.
currentExpandRateFraction (of original stream) of synthesized speech inserted through expansion.
currentPreemptiveRateFraction of synthesized speech inserted through pre-emptive expansion.
currentAccelerateRateFraction of data removed through acceleration.
Returns
If the function succeeds, it will return value 0. If the function fails, it will return a specific error code.

§ getAudioRtpStatistics:averageJitterMs:maxJitterMs:discardedPackets:()

- (int) getAudioRtpStatistics: (long)  sessionId
averageJitterMs: (int *)  averageJitterMs
maxJitterMs: (int *)  maxJitterMs
discardedPackets: (int *)  discardedPackets 

Obtain the RTP statistics of audio channel.

Parameters
sessionIdThe session ID of call conversation.
averageJitterMsShort-time average jitter, in milliseconds.
maxJitterMsMaximum short-time jitter, in milliseconds.
discardedPacketsThe number of discarded packets on a channel during the call.
Returns
If the function succeeds, it will return value 0. If the function fails, it will return a specific error code.

§ getAudioRtcpStatistics:bytesSent:packetsSent:bytesReceived:packetsReceived:sendFractionLost:sendCumulativeLost:recvFractionLost:recvCumulativeLost:roundTripTime:()

- (int) getAudioRtcpStatistics: (long)  sessionId
bytesSent: (int *)  bytesSent
packetsSent: (int *)  packetsSent
bytesReceived: (int *)  bytesReceived
packetsReceived: (int *)  packetsReceived
sendFractionLost: (int *)  sendFractionLost
sendCumulativeLost: (int *)  sendCumulativeLost
recvFractionLost: (int *)  recvFractionLost
recvCumulativeLost: (int *)  recvCumulativeLost
roundTripTime: (int *)  roundTripTime 

Obtain the RTCP statistics of audio channel.

Parameters
sessionIdThe session ID of call conversation.
bytesSentThe number of sent bytes.
packetsSentThe number of sent packets.
bytesReceivedThe number of received bytes.
packetsReceivedThe number of received packets.
sendFractionLostFraction of sent lost in percentage.
sendCumulativeLostThe number of sent cumulative lost packet.
recvFractionLostFraction of received lost in percent.
recvCumulativeLostThe number of received cumulative lost packets.
roundTripTimeThe round-trip time of the session.
Returns
If the function succeeds, it will return value 0. If the function fails, it will return a specific error code.

§ getVideoRtpStatistics:bytesSent:packetsSent:bytesReceived:packetsReceived:()

- (int) getVideoRtpStatistics: (long)  sessionId
bytesSent: (int *)  bytesSent
packetsSent: (int *)  packetsSent
bytesReceived: (int *)  bytesReceived
packetsReceived: (int *)  packetsReceived 

Obtain the RTP statistics of video.

Parameters
sessionIdThe session ID of call conversation.
bytesSentThe number of sent bytes.
packetsSentThe number of sent packets.
bytesReceivedThe number of received bytes.
packetsReceivedThe number of received packets.
Returns
If the function succeeds, it will return value 0. If the function fails, it will return a specific error code.