Macros
Allocate and Add a new Date header.
More...
Allocate and Add a new Encryption header.
More...
Allocate and Add a new Organization header.
More...
Find an Organization header.
More...
Allocate and Add a new Require header.
More...
Allocate and Add a new Supported header.
More...
Allocate and Add a new Timestamp header.
More...
Allocate and Add a new User-Agent header.
More...
Allocate and Add a new Content-Language header.
More...
Find a Content-Language header.
More...
Allocate and Add a new Expires header.
More...
Allocate and Add a new In-Reply-To header.
More...
Allocate and Add a new Max-Forward header.
More...
Allocate and Add a new Priority header.
More...
Allocate and Add a new Proxy-Require header.
More...
Find a Proxy-Require header.
More...
Allocate and Add a new Response-Key header.
More...
Find a Response-Key header.
More...
Allocate and Add a new Subject header.
More...
Allocate and Add a new Retry-After header.
More...
Allocate and Add a new Server header.
More...
Allocate and Add a new Unsupported header.
More...
Allocate and Add a new Warning header.
More...
Functions
Initialise the oSIP parser.
More...
Fix the via header for INCOMING requests only.
More...
define this macro to avoid building several times the message on retransmissions.
More...
Get the usual reason phrase as defined in SIP for a specific status code.
More...
Set the Accept-encoding header.
More...
Get one Accept-encoding header.
More...
Set the Accept-language header.
More...
Get one Accept-Language header.
More...
Set the Authentication-info header.
More...
Get one Authentication-info header.
More...
Set the Authorization header.
More...
Get one Authorization header.
More...
Set the Content-encoding header.
More...
Get one Content-encoding header.
More...
Set the Content-length header.
More...
Get one Content-length header.
More...
Set the Content-type header.
More...
Get one Content-type header.
More...
Set the mime-version header.
More...
Get the Mime-version header.
More...
Set the Proxy-authenticate header.
More...
Get the Proxy-authenticate header.
More...
Set the Proxy-authorization header.
More...
Get one Proxy-authorization header.
More...
Set the Proxy-authentication-info header.
More...
Get the Proxy-authentication-info header.
More...
Set the Record-Route header.
More...
Get one Record-route header.
More...
Set the Www-authenticate header.
More...
Get one Www-authenticate header.
More...
Allocate and Add multiple header (not defined in oSIP).
More...
Allocate and Add an "unknown" header (not defined in oSIP).
More...
Allocate and Add/Replace an "unknown" header (not defined in oSIP).
More...
Allocate and Add an "unknown" header (not defined in oSIP).
More...
Set the Body of the SIP message.
More...
Set the Body of the SIP message.
More...
Detailed Description
Macro Definition Documentation
#define msg_logrequest
(
P,
Q
)
;
#define msg_logresponse
(
P,
Q
)
;
#define osip_message_get_content_language
(
sip,
pos,
dest
#include <osip_parser.h>
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.
Definition at line 721 of file osip_parser.h.
#define osip_message_get_date
(
sip,
pos,
dest
#include <osip_parser.h>
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.
Definition at line 630 of file osip_parser.h.
#define osip_message_get_encryption
(
sip,
pos,
dest
#include <osip_parser.h>
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.
Definition at line 643 of file osip_parser.h.
#define osip_message_get_expires
(
sip,
pos,
dest
#include <osip_parser.h>
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.
Definition at line 734 of file osip_parser.h.
#define osip_message_get_in_reply_to
(
sip,
pos,
dest
#include <osip_parser.h>
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.
Definition at line 747 of file osip_parser.h.
#define osip_message_get_max_forwards
(
sip,
pos,
dest
#include <osip_parser.h>
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.
Definition at line 760 of file osip_parser.h.
#define osip_message_get_organization
(
sip,
pos,
dest
#include <osip_parser.h>
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.
Definition at line 656 of file osip_parser.h.
#define osip_message_get_priority
(
sip,
pos,
dest
#include <osip_parser.h>
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.
Definition at line 773 of file osip_parser.h.
#define osip_message_get_proxy_require
(
sip,
pos,
dest
#include <osip_parser.h>
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.
Definition at line 786 of file osip_parser.h.
#define osip_message_get_require
(
sip,
pos,
dest
#include <osip_parser.h>
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.
Definition at line 669 of file osip_parser.h.
#define osip_message_get_response_key
(
sip,
pos,
dest
#include <osip_parser.h>
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.
Definition at line 799 of file osip_parser.h.
#define osip_message_get_retry_after
(
sip,
pos,
dest
#include <osip_parser.h>
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.
Definition at line 825 of file osip_parser.h.
#define osip_message_get_server
(
sip,
pos,
dest
#include <osip_parser.h>
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.
Definition at line 838 of file osip_parser.h.
#define osip_message_get_subject
(
sip,
pos,
dest
#include <osip_parser.h>
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.
Definition at line 812 of file osip_parser.h.
#define osip_message_get_supported
(
sip,
pos,
dest
#include <osip_parser.h>
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.
Definition at line 682 of file osip_parser.h.
#define osip_message_get_timestamp
(
sip,
pos,
dest
#include <osip_parser.h>
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.
Definition at line 695 of file osip_parser.h.
#define osip_message_get_unsupported
(
sip,
pos,
dest
#include <osip_parser.h>
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.
Definition at line 851 of file osip_parser.h.
#define osip_message_get_user_agent
(
sip,
pos,
dest
#include <osip_parser.h>
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.
Definition at line 708 of file osip_parser.h.
#define osip_message_get_warning
(
sip,
pos,
dest
#include <osip_parser.h>
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.
Definition at line 864 of file osip_parser.h.
#define osip_message_set_content_language
(
sip,
#include <osip_parser.h>
Allocate and Add a new Content-Language header.
- Parameters
-
sip The element to work on.
value the value of the new header.
Definition at line 714 of file osip_parser.h.
#define osip_message_set_date
(
sip,
#include <osip_parser.h>
Allocate and Add a new Date header.
- Parameters
-
sip The element to work on.
value the value of the new header.
Definition at line 623 of file osip_parser.h.
#define osip_message_set_encryption
(
sip,
#include <osip_parser.h>
Allocate and Add a new Encryption header.
- Parameters
-
sip The element to work on.
value the value of the new header.
Definition at line 636 of file osip_parser.h.
#define osip_message_set_expires
(
sip,
#include <osip_parser.h>
Allocate and Add a new Expires header.
- Parameters
-
sip The element to work on.
value the value of the new header.
Definition at line 727 of file osip_parser.h.
#define osip_message_set_in_reply_to
(
sip,
#include <osip_parser.h>
Allocate and Add a new In-Reply-To header.
- Parameters
-
sip The element to work on.
value the value of the new header.
Definition at line 740 of file osip_parser.h.
#define osip_message_set_max_forwards
(
sip,
#include <osip_parser.h>
Allocate and Add a new Max-Forward header.
- Parameters
-
sip The element to work on.
value the value of the new header.
Definition at line 753 of file osip_parser.h.
#define osip_message_set_organization
(
sip,
#include <osip_parser.h>
Allocate and Add a new Organization header.
- Parameters
-
sip The element to work on.
value the value of the new header.
Definition at line 649 of file osip_parser.h.
#define osip_message_set_priority
(
sip,
#include <osip_parser.h>
Allocate and Add a new Priority header.
- Parameters
-
sip The element to work on.
value the value of the new header.
Definition at line 766 of file osip_parser.h.
#define osip_message_set_proxy_require
(
sip,
#include <osip_parser.h>
Allocate and Add a new Proxy-Require header.
- Parameters
-
sip The element to work on.
value the value of the new header.
Definition at line 779 of file osip_parser.h.
#define osip_message_set_require
(
sip,
#include <osip_parser.h>
Allocate and Add a new Require header.
- Parameters
-
sip The element to work on.
value the value of the new header.
Definition at line 662 of file osip_parser.h.
#define osip_message_set_response_key
(
sip,
#include <osip_parser.h>
Allocate and Add a new Response-Key header.
- Parameters
-
sip The element to work on.
value the value of the new header.
Definition at line 792 of file osip_parser.h.
#define osip_message_set_retry_after
(
sip,
#include <osip_parser.h>
Allocate and Add a new Retry-After header.
- Parameters
-
sip The element to work on.
value the value of the new header.
Definition at line 818 of file osip_parser.h.
#define osip_message_set_server
(
sip,
#include <osip_parser.h>
Allocate and Add a new Server header.
- Parameters
-
sip The element to work on.
value the value of the new header.
Definition at line 831 of file osip_parser.h.
#define osip_message_set_subject
(
sip,
#include <osip_parser.h>
Allocate and Add a new Subject header.
- Parameters
-
sip The element to work on.
value the value of the new header.
Definition at line 805 of file osip_parser.h.
#define osip_message_set_supported
(
sip,
#include <osip_parser.h>
Allocate and Add a new Supported header.
- Parameters
-
sip The element to work on.
value the value of the new header.
Definition at line 675 of file osip_parser.h.
#define osip_message_set_timestamp
(
sip,
#include <osip_parser.h>
Allocate and Add a new Timestamp header.
- Parameters
-
sip The element to work on.
value the value of the new header.
Definition at line 688 of file osip_parser.h.
#define osip_message_set_unsupported
(
sip,
#include <osip_parser.h>
Allocate and Add a new Unsupported header.
- Parameters
-
sip The element to work on.
value the value of the new header.
Definition at line 844 of file osip_parser.h.
#define osip_message_set_user_agent
(
sip,
#include <osip_parser.h>
Allocate and Add a new User-Agent header.
- Parameters
-
sip The element to work on.
value the value of the new header.
Definition at line 701 of file osip_parser.h.
#define osip_message_set_warning
(
sip,
#include <osip_parser.h>
Allocate and Add a new Warning header.
- Parameters
-
sip The element to work on.
value the value of the new header.
Definition at line 857 of file osip_parser.h.
Function Documentation
#include <osip_parser.h>
Append a Via header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
const char *
ip_addr,
int
port
)
#include <osip_parser.h>
Fix the via header for INCOMING requests only.
a copy of ip_addr is done.
#include <osip_parser.h>
define this macro to avoid building several times the message on retransmissions.
If you have changed the osip_message_t element since last call of osip_message_to_str() you can call osip_message_force_update() to force a rebuild. Check if the element is already built. (so osip_message_to_str won't build it again)
- Parameters
-
sip The element to check.
#include <osip_parser.h>
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.
#include <osip_parser.h>
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.
#include <osip_parser.h>
Get one Accept-Language header.
- Parameters
-
sip The element to work on.
pos The index of the element to get.
dest A pointer on the header found.
#include <osip_parser.h>
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.
#include <osip_parser.h>
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,
)
#include <osip_parser.h>
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.
#include <osip_parser.h>
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.
#include <osip_parser.h>
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.
#include <osip_parser.h>
Get one Call-id header.
- Parameters
-
sip The element to work on.
#include <osip_parser.h>
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.
#include <osip_parser.h>
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.
#include <osip_parser.h>
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.
#include <osip_parser.h>
Get one Content-length header.
- Parameters
-
sip The element to work on.
#include <osip_parser.h>
Get one Content-type header.
- Parameters
-
sip The element to work on.
#include <osip_parser.h>
Get one Cseq header.
- Parameters
-
sip The element to work on.
#include <osip_parser.h>
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.
#include <osip_parser.h>
Get the From header.
- Parameters
-
sip The element to work on.
#include <osip_parser.h>
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.
#include <osip_parser.h>
Get the Mime-version header.
- Parameters
-
sip The element to work on.
#include <osip_parser.h>
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,
)
#include <osip_parser.h>
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,
)
#include <osip_parser.h>
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 )
#include <osip_parser.h>
Get the usual reason phrase as defined in SIP for a specific status code.
- Parameters
-
status_code A status code.
#include <osip_parser.h>
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.
#include <osip_parser.h>
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.
#include <osip_parser.h>
Get the To header.
- Parameters
-
sip The element to work on.
#include <osip_parser.h>
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.
#include <osip_parser.h>
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,
)
#include <osip_parser.h>
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.
const char *
hname,
const char *
hvalue
)
#include <osip_parser.h>
Allocate and Add/Replace an "unknown" header (not defined in oSIP).
- Parameters
-
sip The element to work on.
hname The token name.
hvalue The token value.
#include <osip_parser.h>
Set the Accept header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
#include <osip_parser.h>
Set the Accept-encoding header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
#include <osip_parser.h>
Set the Accept-language header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
#include <osip_parser.h>
Set the Alert-info header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
#include <osip_parser.h>
Set the Allow header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
#include <osip_parser.h>
Set the Authentication-info header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
#include <osip_parser.h>
Set the Authorization header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
const char *
buf,
size_t
length
)
#include <osip_parser.h>
Set the Body of the SIP message.
- Parameters
-
sip The element to work on.
buf The buffer containing the body.
length The length of the buffer.
const char *
buf,
size_t
length
)
#include <osip_parser.h>
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.
#include <osip_parser.h>
Set the Call-id header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
#include <osip_parser.h>
Set the Call-info header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
#include <osip_parser.h>
Set the Contact header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
#include <osip_parser.h>
Set the Content-encoding header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
#include <osip_parser.h>
Set the Content-length header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
#include <osip_parser.h>
Set the Content-type header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
#include <osip_parser.h>
Set the Cseq header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
#include <osip_parser.h>
Set the Error-info header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
#include <osip_parser.h>
Set the From header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
const char *
hname,
const char *
hvalue
)
#include <osip_parser.h>
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.
#include <osip_parser.h>
Set the mime-version header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
char *
hname,
char *
hvalue
)
#include <osip_parser.h>
Allocate and Add multiple header (not defined in oSIP).
- Parameters
-
sip The element to work on.
hname The token name. NAME MUST BE DYNAMICLY ALLOCATED
hvalue The token value. VALUE MUST BE DYNAMICLY ALLOCATED
#include <osip_parser.h>
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
)
#include <osip_parser.h>
Set the Proxy-authentication-info header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
#include <osip_parser.h>
Set the Proxy-authorization header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
#include <osip_parser.h>
Set the Record-Route header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
#include <osip_parser.h>
Set the Route header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
#include <osip_parser.h>
Set the To header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
const char *
hname,
const char *
hvalue
)
#include <osip_parser.h>
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.
#include <osip_parser.h>
Set the Via header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.
#include <osip_parser.h>
Set the Www-authenticate header.
- Parameters
-
sip The element to work on.
hvalue The string describing the element.