![]() |
PortSIP VoIP SDK Manual for Windows
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 | |
| void | PortSIP.PortSIPLib.enableVAD (Boolean state) |
| Enable/disable Voice Activity Detection (VAD). More... | |
| void | PortSIP.PortSIPLib.enableAEC (EC_MODES ecMode) |
| Enable/disable AEC (Acoustic Echo Cancellation). More... | |
| void | PortSIP.PortSIPLib.enableCNG (Boolean state) |
| Enable/disable Comfort Noise Generator (CNG). More... | |
| void | PortSIP.PortSIPLib.enableAGC (AGC_MODES agcMode) |
| Enable/disable Automatic Gain Control (AGC). More... | |
| void | PortSIP.PortSIPLib.enableANS (NS_MODES nsMode) |
| Enable/disable Audio Noise Suppression (ANS). More... | |
| Int32 | PortSIP.PortSIPLib.setAudioQos (Boolean state, Int32 DSCPValue, Int32 priority) |
| Set the DSCP (differentiated services code point) value of QoS (Quality of Service) for audio channel. More... | |
| Int32 | PortSIP.PortSIPLib.setVideoQos (Boolean state, Int32 DSCPValue) |
| Set the DSCP (differentiated services code point) value of QoS (Quality of Service) for video channel. More... | |
| Int32 | PortSIP.PortSIPLib.setVideoMTU (Int32 mtu) |
| Set the MTU size for video RTP packet. More... | |
| void PortSIP.PortSIPLib.enableVAD | ( | Boolean | state | ) |
Enable/disable Voice Activity Detection (VAD).
| state | Set to true to enable VAD, or false to disable. |
| void PortSIP.PortSIPLib.enableAEC | ( | EC_MODES | ecMode | ) |
Enable/disable AEC (Acoustic Echo Cancellation).
| ecMode | Allow to set the AEC mode to influence different scenarios. |
| Mode | Description |
|---|---|
| EC_NONE | Disable AEC. |
| EC_DEFAULT | Platform default AEC. |
| EC_CONFERENCE | Desktop platform (Windows, MAC) Conferencing default (aggressive AEC). |
| void PortSIP.PortSIPLib.enableCNG | ( | Boolean | state | ) |
Enable/disable Comfort Noise Generator (CNG).
| state | Set it to true to enable CNG, or false to disable. |
| void PortSIP.PortSIPLib.enableAGC | ( | AGC_MODES | agcMode | ) |
Enable/disable Automatic Gain Control (AGC).
| agcMode | Allow to set the AGC mode to influence different scenarios. |
| Mode | Description |
|---|---|
| AGC_DEFAULT | Disable AGC. |
| AGC_DEFAULT | Platform default. |
| AGC_ADAPTIVE_ANALOG | Desktop platform (Windows, MAC) adaptive mode for use when analog volume control exists. |
| AGC_ADAPTIVE_DIGITAL | Scaling takes place in the digital domain (e.g. for conference servers and embedded devices). |
| AGC_FIXED_DIGITAL | It can be used on embedded devices where the capture signal level is predictable. |
| void PortSIP.PortSIPLib.enableANS | ( | NS_MODES | nsMode | ) |
Enable/disable Audio Noise Suppression (ANS).
| nsMode | Allow to set the NS mode to influence different scenarios. |
| Mode | Description |
|---|---|
| NS_NONE | Disable NS. |
| NS_DEFAULT | Platform default. |
| NS_Conference | Conferencing default. |
| NS_LOW_SUPPRESSION | Lowest suppression. |
| NS_MODERATE_SUPPRESSION | Moderate suppression. |
| NS_HIGH_SUPPRESSION | High suppression |
| NS_VERY_HIGH_SUPPRESSION | Highest suppression. |
| Int32 PortSIP.PortSIPLib.setAudioQos | ( | Boolean | state, |
| Int32 | DSCPValue, | ||
| Int32 | priority | ||
| ) |
Set the DSCP (differentiated services code point) value of QoS (Quality of Service) for audio channel.
| state | Set to true to enable audio QoS. |
| DSCPValue | The 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. |
| priority | The 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. |
| Int32 PortSIP.PortSIPLib.setVideoQos | ( | Boolean | state, |
| Int32 | DSCPValue | ||
| ) |
Set the DSCP (differentiated services code point) value of QoS (Quality of Service) for video channel.
| state | Set as true to enable QoS, or false to disable. |
| DSCPValue | The 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. |
| Int32 PortSIP.PortSIPLib.setVideoMTU | ( | Int32 | mtu | ) |
Set the MTU size for video RTP packet.
| mtu | Set MTU value. Allow value ranges (512-65507). Other value will be modified to the default 1450. |