SIP API Developer's Guide

Miscellaneous Functions

char sip_msg_to_str(sip_msg_t sip_msg, int *error);

The sip_msg_to_str() function returns a string that contains all of the headers and content in the SIP message that is defined by the sip_msg parameter. The calling thread must free the string that this function returns.

char sip_hdr_to_str(sip_header_t sip_header, int *error);

The sip_hdr_to_str() function returns the value of the sip_header parameter as a string. The calling thread must free the string that this function returns.

char sip_reqline_to_str(sip_msg_t sip_msg, int *error);

The sip_reqline_to_str() function returns the request line in the SIP message that is defined by the sip_msg parameter as a string. The calling thread must free the string that this function returns.

char *sip_respline_to_str(sip_msg_t sip_msg, int *error);

The sip_respline_to_str() function returns the response line in the SIP message that is defined by the sip_msg parameter as a string. The calling thread must free the string that this function returns.

int sip_init_conn_object(sip_conn_object_t conn_obj);

The sip_init_conn_object() function initializes a connection object with library specific private data.

void sip_clear_stale_data(sip_conn_object_t conn_obj);

The sip_clear_stale_data() function clears any library specific private data that is stored in the connection object that is specified by the conn_obj parameter.

void sip_conn_destroyed(sip_conn_object_t conn_obj);

The sip_conn_destroyed() function clears any library specific private data that is stored in the connection object that is defined by the value of the obj parameter. This function also performs cleanup if this connection object has been cached by the system.