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 and RTCP QOS functions

Functions

(int) - PortSIPSDK::setAudioRtcpBandwidth:BitsRR:BitsRS:KBitsAS:
 Set the audio RTCP bandwidth parameters as the RFC3556. More...
 
(int) - PortSIPSDK::setVideoRtcpBandwidth:BitsRR:BitsRS:KBitsAS:
 Set the video RTCP bandwidth parameters as the RFC3556. More...
 
(int) - PortSIPSDK::setAudioQos:DSCPValue:priority:
 Set the DSCP (differentiated services code point) value of QoS (Quality of Service) for audio channel. More...
 
(int) - PortSIPSDK::setVideoQos:DSCPValue:
 Set the DSCP (differentiated services code point) value of QoS (Quality of Service) for video channel. More...
 
(int) - PortSIPSDK::setVideoMTU:
 Set the MTU size for video RTP packet. More...
 

Detailed Description

Function Documentation

§ setAudioRtcpBandwidth:BitsRR:BitsRS:KBitsAS:()

- (int) setAudioRtcpBandwidth: (long)  sessionId
BitsRR: (int)  BitsRR
BitsRS: (int)  BitsRS
KBitsAS: (int)  KBitsAS 

Set the audio 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.

§ setVideoRtcpBandwidth:BitsRR:BitsRS:KBitsAS:()

- (int) setVideoRtcpBandwidth: (long)  sessionId
BitsRR: (int)  BitsRR
BitsRS: (int)  BitsRS
KBitsAS: (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.

§ setAudioQos:DSCPValue:priority:()

- (int) setAudioQos: (BOOL)  enable
DSCPValue: (int)  DSCPValue
priority: (int)  priority 

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

Parameters
enableSet to true to enable audio QoS.
DSCPValueThe six-bit DSCP value. Valid value ranges 0-63. As defined in RFC 2472, the DSCP value is the high-order 6 bits of the IP version 4 (IPv4) TOS field and the IP version 6 (IPv6) Traffic Class field.
priorityThe 802.1p priority (PCP) field in an 802.1Q/VLAN tag. Values 0-7 indicate the priority, while value -1 leaves the priority setting unchanged.
Returns
If the function succeeds, it will return value 0. If the function fails, it will return a specific error code.

§ setVideoQos:DSCPValue:()

- (int) setVideoQos: (BOOL)  enable
DSCPValue: (int)  DSCPValue 

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

Parameters
enableSet as true to enable QoS, or false to disable.
DSCPValueThe six-bit DSCP value. Valid value ranges 0-63. As defined in RFC 2472, the DSCP value is the high-order 6 bits of the IP version 4 (IPv4) TOS field and the IP version 6 (IPv6) Traffic Class field.
Returns
If the function succeeds, it will return value 0. If the function fails, it will return a specific error code.

§ setVideoMTU:()

- (int) setVideoMTU: (int)  mtu

Set the MTU size for video RTP packet.

Parameters
mtuSet MTU value. Allowed value ranges 512-65507. Other values will be automatically changed to the default 1400.
Returns
If the function succeeds, it will return value 0. If the function fails, it will return a specific error code.