PortSIP VoIP SDK Manual for Android  16.2
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 and RTCP QOS functions

Functions

int com.portsip.PortSipSdk.setAudioRtcpBandwidth (long sessionId, int BitsRR, int BitsRS, int KBitsAS)
 
int com.portsip.PortSipSdk.setVideoRtcpBandwidth (long sessionId, int BitsRR, int BitsRS, int KBitsAS)
 
int com.portsip.PortSipSdk.enableAudioQos (boolean state)
 
int com.portsip.PortSipSdk.enableVideoQos (boolean state)
 
int com.portsip.PortSipSdk.setVideoMTU (int mtu)
 

Detailed Description

Function Documentation

◆ setAudioRtcpBandwidth()

int com.portsip.PortSipSdk.setAudioRtcpBandwidth ( long  sessionId,
int  BitsRR,
int  BitsRS,
int  KBitsAS 
)

Set the audio RTCP bandwidth parameters as RFC3556.

Parameters
sessionIdSet the audio RTCP bandwidth parameters as RFC3556.
BitsRRThe bits for the RR parameter.
BitsRSThe bits for the RS parameter.
KBitsASThe Kbits for the AS parameter.
Returns
If the function succeeds, it will return value 0. If the function fails, it will return a specific error code.

◆ setVideoRtcpBandwidth()

int com.portsip.PortSipSdk.setVideoRtcpBandwidth ( long  sessionId,
int  BitsRR,
int  BitsRS,
int  KBitsAS 
)

Set the video RTCP bandwidth parameters as the RFC3556.

Parameters
sessionIdThe session ID of call conversation.
BitsRRThe bits for the RR parameter.
BitsRSThe bits for the RS parameter.
KBitsASThe Kbits for the AS parameter.
Returns
If the function succeeds, it will return value 0. If the function fails, it will return a specific error code.

◆ enableAudioQos()

int com.portsip.PortSipSdk.enableAudioQos ( boolean  state)

Set the DSCP (differentiated services code point) value of QoS (Quality of Service) for audio channel.

Parameters
stateSet to YES to enable audio QoS and DSCP value will be 46; or NO to disable audio QoS and DSCP value will be 0.
Returns
If the function succeeds, it will return value 0. If the function fails, it will return a specific error code.

◆ enableVideoQos()

int com.portsip.PortSipSdk.enableVideoQos ( boolean  state)

Set the DSCP(differentiated services code point) value of QoS(Quality of Service) for video channel.

Parameters
stateSet to YES to enable video QoS and DSCP value will be 34; or NO to disable video QoS and DSCP value will be 0.
Returns
If the function succeeds, it will return value 0. If the function fails, it will return a specific error code.

◆ setVideoMTU()

int com.portsip.PortSipSdk.setVideoMTU ( int  mtu)

Set the MTU size for video RTP packet.

Parameters
mtuSet MTU value. Allow values range 512 - 65507. Default is 14000.
Returns
If the function succeeds, the return value is 0. If the function fails, the return value is a specific error code.