Skip Navigation Links | |
Exit Print View | |
SIPAPI Developer's Guide Oracle Solaris 11.1 Information Library |
2. Oracle Solaris SIP Internals
3. Multithreading and URI Support
SIP Request and Response Creation Functions
Header and Message Copying Functions
Header and Value Deleting Functions
SIP Header Value Retrieval Functions
The *sip_get_header_value() function returns the parsed value for the header that is specified by the value of the sip_header parameter. This function does not return any values that are marked as deleted.
const struct sip_value *sip_get_next_value(sip_header_value_t old_value, int *error);the *sip_get_next_value() function returns the value, if any, that follows the value that is specified by the value of the old_value parameter. This function does not return any values that are marked as deleted.
const sip_str_t *sip_get_param_value(sip_header_value_t value, char *param_name, int *error);The *sip_get_param_value() function returns the parameter that is specified by the value of the param_name parameter from the SIP message header that is specified by the header_value parameter.
The value of the error parameter is set to zero when this function completes successfully. When this function completes unsuccessfully, it sets the value of the error parameter to the appropriate error value.
const sip_param_t *sip_get_params(sip_header_value_t value, int *error);The *sip_get_params() function returns the parameter list that is associated with the value that is specified in the header_value parameter.
The value of the error parameter is set to zero when this function completes successfully. When this function completes unsuccessfully, it sets the value of the error parameter to the appropriate error value.
char *sip_get_resp_desc(int resp_code);The *sip_get_resp_desc() function returns the reason phrase for the response code that is specified by the value of the resp_code parameter. This function supports the response codes that are listed in section 21 of RFC 3261. This function returns UNKNOWN for unknown response codes.