20 #ifndef _OSIP_PARSER_H_
21 #define _OSIP_PARSER_H_
118 #define osip_message_set_accept(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Accept", value)
129 #define osip_message_get_accept(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "accept", pos, (osip_header_t **) dest)
139 #define osip_message_set_accept_encoding(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Accept-Encoding", value)
150 #define osip_message_get_accept_encoding(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "accept-encoding", pos, (osip_header_t **) dest)
160 #define osip_message_set_accept_language(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Accept-Language", value)
171 #define osip_message_get_accept_language(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "accept-language", pos, (osip_header_t **) dest)
181 #define osip_message_set_alert_info(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Alert-Info", value)
192 #define osip_message_get_alert_info(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "alert-info", pos, (osip_header_t **) dest)
202 #define osip_message_set_allow(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Allow", value)
213 #define osip_message_get_allow(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "allow", pos, (osip_header_t **) dest)
223 #define osip_message_set_authentication_info(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Authentication-Info", value)
234 #define osip_message_get_authentication_info(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "authentication-info", pos, (osip_header_t **) dest)
251 #define osip_message_get_authorization(sip, pos, dest) osip_message_get_knownheaderlist((&(sip)->authorizations), pos, (void **) (dest))
266 #define osip_message_get_call_id(sip) ((sip)->call_id)
296 #define osip_message_get_contact(sip, pos, dest) osip_message_get_knownheaderlist((&(sip)->contacts), pos, (void **) (dest))
306 #define osip_message_set_content_encoding(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Content-Encoding", value)
317 #define osip_message_get_content_encoding(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "content-encoding", pos, (osip_header_t **) dest)
332 #define osip_message_get_content_length(sip) ((sip)->content_length)
347 #define osip_message_get_content_type(sip) ((sip)->content_type)
362 #define osip_message_get_cseq(sip) ((sip)->cseq)
372 #define osip_message_set_error_info(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Error-Info", value)
383 #define osip_message_get_error_info(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "error-info", pos, (osip_header_t **) dest)
398 #define osip_message_get_from(sip) ((sip)->from)
413 #define osip_message_get_mime_version(sip) ((sip)->mime_version)
430 #define osip_message_get_proxy_authenticate(sip, pos, dest) osip_message_get_knownheaderlist((&(sip)->proxy_authenticates), pos, (void **) (dest))
447 #define osip_message_get_proxy_authorization(sip, pos, dest) osip_message_get_knownheaderlist((&(sip)->proxy_authorizations), pos, (void **) (dest))
457 #define osip_message_set_proxy_authentication_info(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Proxy-Authentication-Info", value)
468 #define osip_message_get_proxy_authentication_info(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "proxy-authentication-info", pos, (osip_header_t **) dest)
485 #define osip_message_get_record_route(sip, pos, dest) osip_message_get_knownheaderlist((&(sip)->record_routes), pos, (void **) (dest))
502 #define osip_message_get_route(sip, pos, dest) osip_message_get_knownheaderlist((&(sip)->routes), pos, (void **) (dest))
517 #define osip_message_get_to(sip) ((sip)->to)
540 #define osip_message_get_via(sip, pos, dest) osip_message_get_knownheaderlist((&(sip)->vias), pos, (void **) (dest))
557 #define osip_message_get_www_authenticate(sip, pos, dest) osip_message_get_knownheaderlist((&(sip)->www_authenticates), pos, (void **) (dest))
566 int osip_message_set_multiple_header(
osip_message_t *sip,
char *hname,
char *hvalue);
609 #define osip_message_get_header(sip, pos, dest) osip_message_get_knownheaderlist((&(sip)->headers), pos, (void **) (dest))
634 #define osip_message_get_body(sip, pos, dest) osip_message_get_knownheaderlist((&(sip)->bodies), pos, (void **) (dest))
643 #define msg_logrequest(P, Q) ;
644 #define msg_logresponse(P, Q) ;
653 #define osip_message_set_date(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Date", value)
660 #define osip_message_get_date(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "date", pos, (osip_header_t **) dest)
666 #define osip_message_set_encryption(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Encryption", value)
673 #define osip_message_get_encryption(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "encryption", pos, (osip_header_t **) dest)
679 #define osip_message_set_organization(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Organization", value)
686 #define osip_message_get_organization(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "organization", pos, (osip_header_t **) dest)
692 #define osip_message_set_require(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Require", value)
699 #define osip_message_get_require(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "require", pos, (osip_header_t **) dest)
705 #define osip_message_set_supported(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Supported", value)
712 #define osip_message_get_supported(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "supported", pos, (osip_header_t **) dest)
718 #define osip_message_set_timestamp(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Timestamp", value)
725 #define osip_message_get_timestamp(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "timestamp", pos, (osip_header_t **) dest)
731 #define osip_message_set_user_agent(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "User-Agent", value)
738 #define osip_message_get_user_agent(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "user-agent", pos, (osip_header_t **) dest)
744 #define osip_message_set_content_language(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Content-Language", value)
751 #define osip_message_get_content_language(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "content-language", pos, (osip_header_t **) dest)
757 #define osip_message_set_expires(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Expires", value)
764 #define osip_message_get_expires(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "expires", pos, (osip_header_t **) dest)
770 #define osip_message_set_in_reply_to(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "In-Reply-To", value)
777 #define osip_message_get_in_reply_to(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "in-reply-to", pos, (osip_header_t **) dest)
783 #define osip_message_set_max_forwards(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Max-Forwards", value)
790 #define osip_message_get_max_forwards(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "max-forwards", pos, (osip_header_t **) dest)
796 #define osip_message_set_priority(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Priority", value)
803 #define osip_message_get_priority(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "priority", pos, (osip_header_t **) dest)
809 #define osip_message_set_proxy_require(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Proxy-Require", value)
816 #define osip_message_get_proxy_require(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "proxy-require", pos, (osip_header_t **) dest)
822 #define osip_message_set_response_key(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Response-Key", value)
829 #define osip_message_get_response_key(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "response-key", pos, (osip_header_t **) dest)
835 #define osip_message_set_subject(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Subject", value)
842 #define osip_message_get_subject(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "subject", pos, (osip_header_t **) dest)
848 #define osip_message_set_retry_after(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Retry-After", value)
855 #define osip_message_get_retry_after(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "retry-after", pos, (osip_header_t **) dest)
861 #define osip_message_set_server(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Server", value)
868 #define osip_message_get_server(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "server", pos, (osip_header_t **) dest)
874 #define osip_message_set_unsupported(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Unsupported", value)
881 #define osip_message_get_unsupported(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "unsupported", pos, (osip_header_t **) dest)
887 #define osip_message_set_warning(sip, value) osip_message_set_header((osip_message_t *) sip, (const char *) "Warning", value)
894 #define osip_message_get_warning(sip, pos, dest) osip_message_header_get_byname((osip_message_t *) sip, (const char *) "warning", pos, (osip_header_t **) dest)
int osip_message_set_accept_encoding(osip_message_t *sip, const char *hvalue)
Definition: osip_accept_encoding.c:32
int osip_message_get_proxy_authentication_info(const osip_message_t *sip, int pos, osip_proxy_authentication_info_t **dest)
Definition: osip_proxy_authentication_info.c:60
int osip_message_get__property(const osip_message_t *sip)
Definition: osip_message_to_str.c:288
int osip_message_header_get_byname(const osip_message_t *sip, const char *hname, int pos, osip_header_t **dest)
Definition: osip_header.c:186
int osip_message_set_to(osip_message_t *sip, const char *hvalue)
Definition: osip_to.c:35
int osip_message_set_body_mime(osip_message_t *sip, const char *buf, size_t length)
Definition: osip_body.c:201
int osip_message_set_content_length(osip_message_t *sip, const char *hvalue)
Definition: osip_content_length.c:40
int osip_message_set_proxy_authorization(osip_message_t *sip, const char *hvalue)
Definition: osip_proxy_authorization.c:31
int osip_message_set_accept(osip_message_t *sip, const char *hvalue)
Definition: osip_accept.c:32
int osip_message_get_authentication_info(const osip_message_t *sip, int pos, osip_authentication_info_t **dest)
Definition: osip_authentication_info.c:265
osip_content_type_t * osip_message_get_content_type(const osip_message_t *sip)
Definition: osip_content_type.c:75
int osip_message_get_record_route(const osip_message_t *sip, int pos, osip_record_route_t **dest)
Definition: osip_record_route.c:64
int osip_message_get_allow(const osip_message_t *sip, int pos, osip_allow_t **dest)
Definition: osip_allow.c:53
int osip_message_get_content_encoding(const osip_message_t *sip, int pos, osip_content_encoding_t **dest)
Definition: osip_content_encoding.c:56
int osip_message_set_record_route(osip_message_t *sip, const char *hvalue)
Definition: osip_record_route.c:36
int osip_message_get_call_info(const osip_message_t *sip, int pos, osip_call_info_t **dest)
Definition: osip_call_info.c:51
int osip_message_get_contact(const osip_message_t *sip, int pos, osip_contact_t **dest)
Definition: osip_contact.c:87
int osip_message_get_error_info(const osip_message_t *sip, int pos, osip_error_info_t **dest)
Definition: osip_error_info.c:53
int osip_message_set_content_type(osip_message_t *sip, const char *hvalue)
Definition: osip_content_type.c:45
int osip_message_get_accept_language(const osip_message_t *sip, int pos, osip_accept_language_t **dest)
Definition: osip_accept_language.c:53
int osip_message_set_mime_version(osip_message_t *sip, const char *hvalue)
Definition: osip_mime_version.c:30
int osip_message_set_alert_info(osip_message_t *sip, const char *hvalue)
Definition: osip_alert_info.c:29
int osip_message_get_authorization(const osip_message_t *sip, int pos, osip_authorization_t **dest)
Definition: osip_authorization.c:342
int osip_message_set_body(osip_message_t *sip, const char *buf, size_t length)
Definition: osip_body.c:52
int osip_message_replace_header(osip_message_t *sip, const char *hname, const char *hvalue)
Definition: osip_header.c:75
int osip_message_set_contact(osip_message_t *sip, const char *hvalue)
Definition: osip_contact.c:30
int osip_message_set_topheader(osip_message_t *sip, const char *hname, const char *hvalue)
Definition: osip_header.c:127
int osip_message_get_www_authenticate(const osip_message_t *sip, int pos, osip_www_authenticate_t **dest)
Definition: osip_www_authenticate.c:441
const char * osip_message_get_reason(int status_code)
Definition: osip_message_parse.c:992
osip_mime_version_t * osip_message_get_mime_version(const osip_message_t *sip)
Definition: osip_mime_version.c:60
int osip_message_set_proxy_authenticate(osip_message_t *sip, const char *hvalue)
Definition: osip_proxy_authenticate.c:30
int osip_message_set_call_info(osip_message_t *sip, const char *hvalue)
Definition: osip_call_info.c:27
int osip_message_set_www_authenticate(osip_message_t *sip, const char *hvalue)
Definition: osip_www_authenticate.c:41
int osip_message_set_authorization(osip_message_t *sip, const char *hvalue)
Definition: osip_authorization.c:41
int parser_init(void)
Definition: osip_parser_cfg.c:59
int osip_message_set_content_encoding(osip_message_t *sip, const char *hvalue)
Definition: osip_content_encoding.c:32
int osip_message_get_alert_info(const osip_message_t *sip, int pos, osip_alert_info_t **dest)
Definition: osip_alert_info.c:53
int osip_message_set_proxy_authentication_info(osip_message_t *sip, const char *hvalue)
Definition: osip_proxy_authentication_info.c:32
int osip_message_set_header(osip_message_t *sip, const char *hname, const char *hvalue)
Definition: osip_header.c:31
int osip_message_get_route(const osip_message_t *sip, int pos, osip_route_t **dest)
Definition: osip_route.c:64
int osip_message_set_error_info(osip_message_t *sip, const char *hvalue)
Definition: osip_error_info.c:29
osip_to_t * osip_message_get_to(const osip_message_t *sip)
Definition: osip_to.c:65
int osip_message_set_from(osip_message_t *sip, const char *hvalue)
Definition: osip_from.c:31
int osip_message_get_body(const osip_message_t *sip, int pos, osip_body_t **dest)
Definition: osip_body.c:122
int osip_message_set_authentication_info(osip_message_t *sip, const char *hvalue)
Definition: osip_authentication_info.c:43
int osip_message_append_via(osip_message_t *sip, const char *hvalue)
Definition: osip_via.c:59
int osip_message_set_via(osip_message_t *sip, const char *hvalue)
Definition: osip_via.c:31
int osip_message_fix_last_via_header(osip_message_t *request, const char *ip_addr, int port)
Definition: osip_message_parse.c:949
osip_content_length_t * osip_message_get_content_length(const osip_message_t *sip)
Definition: osip_content_length.c:90
int osip_message_get_accept(const osip_message_t *sip, int pos, osip_accept_t **dest)
Definition: osip_accept.c:54
osip_cseq_t * osip_message_get_cseq(const osip_message_t *sip)
Definition: osip_cseq.c:115
int osip_message_set_route(osip_message_t *sip, const char *hvalue)
Definition: osip_route.c:36
int osip_message_get_proxy_authenticate(const osip_message_t *sip, int pos, osip_proxy_authenticate_t **dest)
Definition: osip_proxy_authenticate.c:58
int osip_message_force_update(osip_message_t *sip)
Definition: osip_message_to_str.c:295
int osip_message_set_accept_language(osip_message_t *sip, const char *hvalue)
Definition: osip_accept_language.c:29
int osip_message_get_proxy_authorization(const osip_message_t *sip, int pos, osip_proxy_authorization_t **dest)
Definition: osip_proxy_authorization.c:56
int osip_message_get_via(const osip_message_t *sip, int pos, osip_via_t **dest)
Definition: osip_via.c:86
int osip_message_get_header(const osip_message_t *sip, int pos, osip_header_t **dest)
Definition: osip_header.c:170
int osip_message_set_allow(osip_message_t *sip, const char *hvalue)
Definition: osip_allow.c:29
int osip_message_set_cseq(osip_message_t *sip, const char *hvalue)
Definition: osip_cseq.c:41
int parser_add_comma_separated_header(const char *hname)
Definition: osip_parser_cfg.c:306
osip_from_t * osip_message_get_from(const osip_message_t *sip)
Definition: osip_from.c:61
osip_call_id_t * osip_message_get_call_id(const osip_message_t *sip)
Definition: osip_call_id.c:59
int osip_message_get_accept_encoding(const osip_message_t *sip, int pos, osip_accept_encoding_t **dest)
Definition: osip_accept_encoding.c:56
int osip_message_set_call_id(osip_message_t *sip, const char *hvalue)
Definition: osip_call_id.c:30
oSIP SIP Message Accessor Routines
Definition: osip_accept_encoding.h:46
Definition: osip_authentication_info.h:44
Definition: osip_authorization.h:44
Definition: osip_body.h:47
Definition: osip_call_id.h:44
Definition: osip_call_info.h:46
Definition: osip_content_length.h:44
Definition: osip_content_type.h:46
Definition: osip_cseq.h:44
Definition: osip_from.h:47
Definition: osip_message.h:54
Definition: osip_via.h:46
Definition: osip_www_authenticate.h:44