![]() |
PortSIP VoIP SDK Manual for iOS
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 | |
(NSString *) | - PortSIPSDK::getSipMessageHeaderValue:headerName: |
Access the SIP header of SIP message. More... | |
(long) | - PortSIPSDK::addSipMessageHeader:methodName:msgType:headerName:headerValue: |
Add the SIP Message header into the specified outgoing SIP message. More... | |
(int) | - PortSIPSDK::removeAddedSipMessageHeader: |
Remove the headers (custom header) added by addSipMessageHeader. More... | |
(void) | - PortSIPSDK::clearAddedSipMessageHeaders |
Clear the added extension headers (custom headers) More... | |
(long) | - PortSIPSDK::modifySipMessageHeader:methodName:msgType:headerName:headerValue: |
Modify the special SIP header value for every outgoing SIP message. More... | |
(int) | - PortSIPSDK::removeModifiedSipMessageHeader: |
Remove the extension header (custom header) from every outgoing SIP message. More... | |
(void) | - PortSIPSDK::clearModifiedSipMessageHeaders |
Clear the modified headers value, and do not modify every outgoing SIP message header values any longer. More... | |
- (NSString*) getSipMessageHeaderValue: | (NSString *) | sipMessage | |
headerName: | (NSString *) | headerName | |
Access the SIP header of SIP message.
sipMessage | The SIP message. |
headerName | The header with which to access the SIP message. |
- (long) addSipMessageHeader: | (long) | sessionId | |
methodName: | (NSString *) | methodName | |
msgType: | (int) | msgType | |
headerName: | (NSString *) | headerName | |
headerValue: | (NSString *) | 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 | Just add the header to the SIP message with specified method name. 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 that will appear in SIP message. |
headerValue | The custom header value. |
- (int) removeAddedSipMessageHeader: | (long) | addedSipMessageId |
Remove the headers (custom header) added by addSipMessageHeader.
addedSipMessageId | The addedSipMessageId return by addSipMessageHeader. |
- (void) clearAddedSipMessageHeaders |
Clear the added extension headers (custom headers)
- (long) modifySipMessageHeader: | (long) | sessionId | |
methodName: | (NSString *) | methodName | |
msgType: | (int) | msgType | |
headerName: | (NSString *) | headerName | |
headerValue: | (NSString *) | 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) removeModifiedSipMessageHeader: | (long) | modifiedSipMessageId |
Remove the extension header (custom header) from every outgoing SIP message.
modifiedSipMessageId | The modifiedSipMessageId is returned by modifySipMessageHeader. |
- (void) clearModifiedSipMessageHeaders |
Clear the modified headers value, and do not modify every outgoing SIP message header values any longer.