Defines
Functions
Define Documentation
#define osip_message_get_content_language
(
sip,
Find a Content-Language header.
- Parameters:
-
sip The element to work on.
pos The index of the header in the list of unknown header.
dest A pointer on the element found.
#define osip_message_get_date
(
sip,
Find a Date header.
- Parameters:
-
sip The element to work on.
pos The index of the header in the list of unknown header.
dest A pointer on the element found.
#define osip_message_get_encryption
(
sip,
Find an Encryption header.
- Parameters:
-
sip The element to work on.
pos The index of the header in the list of unknown header.
dest A pointer on the element found.
#define osip_message_get_expires
(
sip,
Find a Expires header.
- Parameters:
-
sip The element to work on.
pos The index of the header in the list of unknown header.
dest A pointer on the element found.
#define osip_message_get_in_reply_to
(
sip,
Find a In-Reply-To header.
- Parameters:
-
sip The element to work on.
pos The index of the header in the list of unknown header.
dest A pointer on the element found.
#define osip_message_get_max_forwards
(
sip,
Find a Max-Forward header.
- Parameters:
-
sip The element to work on.
pos The index of the header in the list of unknown header.
dest A pointer on the element found.
#define osip_message_get_organization
(
sip,
Find an Organization header.
- Parameters:
-
sip The element to work on.
pos The index of the header in the list of unknown header.
dest A pointer on the element found.
#define osip_message_get_priority
(
sip,
Find a Priority header.
- Parameters:
-
sip The element to work on.
pos The index of the header in the list of unknown header.
dest A pointer on the element found.
#define osip_message_get_proxy_require
(
sip,
Find a Proxy-Require header.
- Parameters:
-
sip The element to work on.
pos The index of the header in the list of unknown header.
dest A pointer on the element found.
#define osip_message_get_require
(
sip,
Find a Require header.
- Parameters:
-
sip The element to work on.
pos The index of the header in the list of unknown header.
dest A pointer on the element found.
#define osip_message_get_response_key
(
sip,
Find a Response-Key header.
- Parameters:
-
sip The element to work on.
pos The index of the header in the list of unknown header.
dest A pointer on the element found.
#define osip_message_get_retry_after
(
sip,
Find a Retry-After header.
- Parameters:
-
sip The element to work on.
pos The index of the header in the list of unknown header.
dest A pointer on the element found.
#define osip_message_get_server
(
sip,
Find a Server header.
- Parameters:
-
sip The element to work on.
pos The index of the header in the list of unknown header.
dest A pointer on the element found.
#define osip_message_get_subject
(
sip,
Find a Subject header.
- Parameters:
-
sip The element to work on.
pos The index of the header in the list of unknown header.
dest A pointer on the element found.
#define osip_message_get_supported
(
sip,
Find a Supported header.
- Parameters:
-
sip The element to work on.
pos The index of the header in the list of unknown header.
dest A pointer on the element found.
#define osip_message_get_timestamp
(
sip,
Find a Timestamp header.
- Parameters:
-
sip The element to work on.
pos The index of the header in the list of unknown header.
dest A pointer on the element found.
#define osip_message_get_unsupported
(
sip,
Find a Unsupported header.
- Parameters:
-
sip The element to work on.
pos The index of the header in the list of unknown header.
dest A pointer on the element found.
#define osip_message_get_user_agent
(
sip,
Find a User-Agent header.
- Parameters:
-
sip The element to work on.
pos The index of the header in the list of unknown header.
dest A pointer on the element found.
#define osip_message_get_warning
(
sip,
Find a Warning header.
- Parameters:
-
sip The element to work on.
pos The index of the header in the list of unknown header.
dest A pointer on the element found.
#define osip_message_set_content_language
(
sip,
value
)
osip_message_set_header((
osip_message_t *)sip,(const char *)"Content-Language",value)
Allocate and Add a new Content-Language header.
- Parameters:
-
sip The element to work on.
value the value of the new header.
#define osip_message_set_date
(
sip,
value
)
osip_message_set_header((
osip_message_t *)sip,(const char *)"Date",value)
Allocate and Add a new Date header.
- Parameters:
-
sip The element to work on.
value the value of the new header.
#define osip_message_set_encryption
(
sip,
value
)
osip_message_set_header((
osip_message_t *)sip,(const char *)"Encryption",value)
Allocate and Add a new Encryption header.
- Parameters:
-
sip The element to work on.
value the value of the new header.
#define osip_message_set_expires
(
sip,
value
)
osip_message_set_header((
osip_message_t *)sip,(const char *)"Expires",value)
Allocate and Add a new Expires header.
- Parameters:
-
sip The element to work on.
value the value of the new header.
#define osip_message_set_in_reply_to
(
sip,
value
)
osip_message_set_header((
osip_message_t *)sip,(const char *)"In-Reply-To",value)
Allocate and Add a new In-Reply-To header.
- Parameters:
-
sip The element to work on.
value the value of the new header.
#define osip_message_set_max_forwards
(
sip,
value
)
osip_message_set_header((
osip_message_t *)sip,(const char *)"Max-Forwards",value)
Allocate and Add a new Max-Forward header.
- Parameters:
-
sip The element to work on.
value the value of the new header.
#define osip_message_set_organization
(
sip,
value
)
osip_message_set_header((
osip_message_t *)sip,(const char *)"Organization",value)
Allocate and Add a new Organization header.
- Parameters:
-
sip The element to work on.
value the value of the new header.
#define osip_message_set_priority
(
sip,
value
)
osip_message_set_header((
osip_message_t *)sip,(const char *)"Priority",value)
Allocate and Add a new Priority header.
- Parameters:
-
sip The element to work on.
value the value of the new header.
#define osip_message_set_proxy_require
(
sip,
value
)
osip_message_set_header((
osip_message_t *)sip,(const char *)"Proxy-Require",value)
Allocate and Add a new Proxy-Require header.
- Parameters:
-
sip The element to work on.
value the value of the new header.
#define osip_message_set_require
(
sip,
value
)
osip_message_set_header((
osip_message_t *)sip,(const char *)"Require",value)
Allocate and Add a new Require header.
- Parameters:
-
sip The element to work on.
value the value of the new header.
#define osip_message_set_response_key
(
sip,
value
)
osip_message_set_header((
osip_message_t *)sip,(const char *)"Response-Key",value)
Allocate and Add a new Response-Key header.
- Parameters:
-
sip The element to work on.
value the value of the new header.
#define osip_message_set_retry_after
(
sip,
value
)
osip_message_set_header((
osip_message_t *)sip,(const char *)"Retry-After",value)
Allocate and Add a new Retry-After header.
- Parameters:
-
sip The element to work on.
value the value of the new header.
#define osip_message_set_server
(
sip,
value
)
osip_message_set_header((
osip_message_t *)sip,(const char *)"Server",value)
Allocate and Add a new Server header.
- Parameters:
-
sip The element to work on.
value the value of the new header.
#define osip_message_set_subject
(
sip,
value
)
osip_message_set_header((
osip_message_t *)sip,(const char *)"Subject",value)
Allocate and Add a new Subject header.
- Parameters:
-
sip The element to work on.
value the value of the new header.
#define osip_message_set_supported
(
sip,
value
)
osip_message_set_header((
osip_message_t *)sip,(const char *)"Supported",value)
Allocate and Add a new Supported header.
- Parameters:
-
sip The element to work on.
value the value of the new header.
#define osip_message_set_timestamp
(
sip,
value
)
osip_message_set_header((
osip_message_t *)sip,(const char *)"Timestamp",value)
Allocate and Add a new Timestamp header.
- Parameters:
-
sip The element to work on.
value the value of the new header.
#define osip_message_set_unsupported
(
sip,
value
)
osip_message_set_header((
osip_message_t *)sip,(const char *)"Unsupported",value)
Allocate and Add a new Unsupported header.
- Parameters:
-
sip The element to work on.
value the value of the new header.
#define osip_message_set_user_agent
(
sip,
value
)
osip_message_set_header((
osip_message_t *)sip,(const char *)"User-Agent",value)
Allocate and Add a new User-Agent header.
- Parameters:
-
sip The element to work on.
value the value of the new header.
#define osip_message_set_warning
(
sip,
value
)
osip_message_set_header((
osip_message_t *)sip,(const char *)"Warning",value)
Allocate and Add a new Warning header.
- Parameters:
-
sip The element to work on.
value the value of the new header.
Function Documentation
Append a Via header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
const char *
ip_addr,
int
port
)
Fix the via header for INCOMING requests only. a copy of ip_addr is done.
Force a osip_message_t element to be rebuild on next osip_message_to_str() call.
- Parameters:
-
sip The element to work on.
Check if the element is already built. (so osip_message_to_str won't build it again)
- Parameters:
-
sip The element to check.
Get one Accept header.
- Parameters:
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.
Get one Accept-encoding header.
- Parameters:
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.
Get one Accept header.
- Parameters:
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.
Get one Alert-info header.
- Parameters:
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.
Get one Allow header.
- Parameters:
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.
int osip_message_get_authentication_info
(
const
osip_message_t *
sip,
int
pos,
)
Get one Authentication-info header.
- Parameters:
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.
Get one Authorization header.
- Parameters:
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.
Get one body header.
- Parameters:
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the body found.
Get one Call-id header.
- Parameters:
-
sip The element to work on.
Get one Call-info header.
- Parameters:
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.
Get one Contact header.
- Parameters:
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.
int osip_message_get_content_disposition
(
const
osip_message_t *
sip,
int
pos,
)
Get one Content-disposition header.
- Parameters:
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.
Get one Content-encoding header.
- Parameters:
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.
Get one Content-length header.
- Parameters:
-
sip The element to work on.
Get one Content-type header.
- Parameters:
-
sip The element to work on.
Get one Cseq header.
- Parameters:
-
sip The element to work on.
Get one Error-info header.
- Parameters:
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.
Get the From header.
- Parameters:
-
sip The element to work on.
Get one "unknown" header.
- Parameters:
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.
Get the Mime-version header.
- Parameters:
-
sip The element to work on.
Get the Proxy-authenticate header.
- Parameters:
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.
int osip_message_get_proxy_authentication_info
(
const
osip_message_t *
sip,
int
pos,
)
Get the Proxy-authentication-info header.
- Parameters:
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.
int osip_message_get_proxy_authorization
(
const
osip_message_t *
sip,
int
pos,
)
Get one Proxy-authorization header.
- Parameters:
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.
const char* osip_message_get_reason
(
int
status_code
)
Get the usual reason phrase as defined in SIP for a specific status code.
- Parameters:
-
status_code A status code.
Get one Record-route header.
- Parameters:
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.
Get one Route header.
- Parameters:
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.
Get the To header.
- Parameters:
-
sip The element to work on.
Get one Via header.
- Parameters:
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.
Get one Www-authenticate header.
- Parameters:
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.
const char *
hname,
int
pos,
)
Find an "unknown" header. (not defined in oSIP)
- Parameters:
-
sip The element to work on.
hname The name of the header to find.
pos The index where to start searching for the header.
dest A pointer to the header found.
Set the Accept header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Set the Accept-encoding header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Set the Accept-language header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Set the Alert-info header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Set the Allow header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Set the Authentication-info header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Set the Authorization header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
const char *
buf,
size_t
length
)
Fill the body of message.
- Parameters:
-
sip The structure to store results.
buf The pointer to the start of body.
length The length of body;
const char *
buf,
size_t
length
)
Set the Body of the SIP message. (please report bugs)
- Parameters:
-
sip The element to work on.
buf the buffer containing the body.
length The length of the buffer.
Set the Call-id header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Set the Call-info header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Set the Contact header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Set the Content-disposition header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Set the Content-encoding header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Set the Content-length header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Set the Content-type header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Set the Cseq header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Set the Error-info header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Set the From header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
const char *
hname,
const char *
hvalue
)
Allocate and Add an "unknown" header (not defined in oSIP).
- Parameters:
-
sip The element to work on.
hname The token name.
hvalue The token value.
Set the mime-version header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Set the Proxy-authenticate header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
int osip_message_set_proxy_authentication_info
(
osip_message_t *
sip,
const char *
hvalue
)
Set the Proxy-authentication-info header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Set the Proxy-authorization header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Set the Record-Route header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Set the Route header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Set the To header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
const char *
hname,
const char *
hvalue
)
Allocate and Add an "unknown" header (not defined in oSIP). The element is add on the top of the unknown header list.
- Parameters:
-
sip The element to work on.
hname The token name.
hvalue The token value.
Set the Via header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Set the Www-authenticate header.
- Parameters:
-
sip The element to work on.
hvalue The string describing the element.
Initialise the oSIP parser.
Generated on Tue Feb 22 00:59:48 2005 for libosip by
doxygen 1.4.1