![]() |
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 | |
| String | com.portsip.PortSipSdk.getSipMessageHeaderValue (String sipMessage, String headerName) |
| int | com.portsip.PortSipSdk.addSipMessageHeader (long sessionId, String methodName, int msgType, String headerName, String headerValue) |
| int | com.portsip.PortSipSdk.removeAddedSipMessageHeader (long addedSipMessageId) |
| void | com.portsip.PortSipSdk.clearAddedSipMessageHeaders () |
| int | com.portsip.PortSipSdk.modifySipMessageHeader (long sessionId, String methodName, int msgType, String headerName, String headerValue) |
| int | com.portsip.PortSipSdk.removeModifiedSipMessageHeader (long modifiedSipMessageId) |
| void | com.portsip.PortSipSdk.clearModifiedSipMessageHeaders () |
| String com.portsip.PortSipSdk.getSipMessageHeaderValue | ( | String | sipMessage, |
| String | headerName | ||
| ) |
Access the SIP header of SIP message.
| sipMessage | The SIP message. |
| headerName | The header of which user wishes to access the SIP message. |
| int com.portsip.PortSipSdk.addSipMessageHeader | ( | long | sessionId, |
| String | methodName, | ||
| int | msgType, | ||
| String | headerName, | ||
| String | headerValue | ||
| ) |
Add the SIP Message header into the specified outgoing SIP message.
| sessionId | Add the header to the SIP message with the specified session Id only. By setting to -1, it will be added to all messages. |
| methodName | Add the header to the SIP message with specified method name only. For example: "INVITE", "REGISTER", "INFO" etc. If "ALL" specified, it will add all SIP messages. |
| msgType | 1 refers to apply to the request message, 2 refers to apply to the response message, 3 refers to apply to both request and response. |
| headerName | The header name which will appear in SIP message. |
| headerValue | The custom header value. |
| int com.portsip.PortSipSdk.removeAddedSipMessageHeader | ( | long | addedSipMessageId | ) |
Remove the headers (custom header) added by addSipMessageHeader.
| addedSipMessageId | The addedSipMessageId return by addSipMessageHeader. |
| void com.portsip.PortSipSdk.clearAddedSipMessageHeaders | ( | ) |
Clear the added extension headers (custom headers)
| int com.portsip.PortSipSdk.modifySipMessageHeader | ( | long | sessionId, |
| String | methodName, | ||
| int | msgType, | ||
| String | headerName, | ||
| String | headerValue | ||
| ) |
Modify the special SIP header value for every outgoing SIP message.
| sessionId | The header to the SIP message with the specified session Id. By setting to -1, it will be added to all messages. |
| methodName | Modify the header to the SIP message with specified method name only. For example: "INVITE", "REGISTER", "INFO" etc. If "ALL" specified, it will add all SIP messages. |
| msgType | 1 refers to apply to the request message, 2 refers to apply to the response message, 3 refers to apply to both request and response. |
| headerName | The SIP header name of which the value will be modified. |
| headerValue | The heaver value to be modified. |
| int com.portsip.PortSipSdk.removeModifiedSipMessageHeader | ( | long | modifiedSipMessageId | ) |
Remove the headers (custom header) added by modifiedSipMessageId.
| modifiedSipMessageId | The modifiedSipMessageId return by modifySipMessageHeader. |
| void com.portsip.PortSipSdk.clearModifiedSipMessageHeaders | ( | ) |
Clear the modify headers value. Once cleared, it will no longer modify every outgoing SIP message header values.