#include <stdio.h>#include <stdlib.h>#include <sys/types.h>#include <unistd.h>#include "nhelpr_funcs.h"#include "../../dprint.h"#include "../../config.h"#include "../../ut.h"#include "../../forward.h"#include "../../resolve.h"#include "../../globals.h"#include "../../udp_server.h"#include "../../pt.h"#include "../../parser/msg_parser.h"#include "../../trim.h"#include "../../parser/parse_from.h"#include "../../parser/contact/parse_contact.h"#include "../../parser/parse_uri.h"#include "../../parser/parse_content.h"

Go to the source code of this file.
Defines | |
| #define | advance(_ptr, _n, _str, _error) |
| #define | one_of_16(_x, _t) |
| #define | one_of_8(_x, _t) |
| #define | READ(val) (*(val + 0) + (*(val + 1) << 8) + (*(val + 2) << 16) + (*(val + 3) << 24)) |
Functions | |
| int | check_content_type (struct sip_msg *msg) |
| int | extract_body (struct sip_msg *msg, str *body) |
| int | get_callid (struct sip_msg *_m, str *_cid) |
| int | get_contact_uri (struct sip_msg *_m, struct sip_uri *uri, contact_t **_c) |
| int | get_from_tag (struct sip_msg *_m, str *_tag) |
| int | get_to_tag (struct sip_msg *_m, str *_tag) |
| void * | ser_memmem (const void *b1, const void *b2, size_t len1, size_t len2) |
| #define advance | ( | _ptr, | |||
| _n, | |||||
| _str, | |||||
| _error | ) |
| #define one_of_16 | ( | _x, | |||
| _t | ) |
Value:
(_x==_t[0]||_x==_t[15]||_x==_t[8]||_x==_t[2]||_x==_t[3]||_x==_t[4]\ ||_x==_t[5]||_x==_t[6]||_x==_t[7]||_x==_t[1]||_x==_t[9]||_x==_t[10]\ ||_x==_t[11]||_x==_t[12]||_x==_t[13]||_x==_t[14])
Definition at line 58 of file nhelpr_funcs.c.
Referenced by check_content_type().
| #define one_of_8 | ( | _x, | |||
| _t | ) |
Value:
(_x==_t[0]||_x==_t[7]||_x==_t[1]||_x==_t[2]||_x==_t[3]||_x==_t[4]\ ||_x==_t[5]||_x==_t[6])
Definition at line 62 of file nhelpr_funcs.c.
Referenced by check_content_type().
Definition at line 50 of file nhelpr_funcs.c.
Referenced by check_content_type(), parse_hname2(), parse_param_name(), and parse_supported_body().
| int check_content_type | ( | struct sip_msg * | msg | ) |
Definition at line 68 of file nhelpr_funcs.c.
References advance, hdr_field::body, sip_msg::content_type, _str::len, LM_DBG, LM_ERR, LM_WARN, one_of_16, one_of_8, READ, _str::s, and trim_len.
Referenced by extract_body().
Definition at line 156 of file nhelpr_funcs.c.
References check_content_type(), get_body(), get_content_length, _str::len, LM_ERR, and _str::s.
Referenced by fix_nated_sdp_f(), force_rtp_proxy(), and sdp_1918().
Definition at line 248 of file nhelpr_funcs.c.
References hdr_field::body, sip_msg::callid, HDR_CALLID_F, _str::len, LM_ERR, NULL, parse_headers(), _str::s, and trim().
Definition at line 319 of file nhelpr_funcs.c.
References sip_msg::contact, HDR_CONTACT_F, sip_uri::host, _str::len, LM_ERR, NULL, parse_contact(), parse_headers(), parse_uri(), and hdr_field::parsed.
Referenced by build_dlg_ack(), contact_1918(), dlg_confirmed_resp_uac(), dlg_request_uas(), fix_nated_contact_f(), FixContact(), request2dlg(), response2dlg(), and test_private_contact().
Definition at line 296 of file nhelpr_funcs.c.
References get_from, _str::len, LM_ERR, NULL, parse_from_header(), and _str::s.
Definition at line 273 of file nhelpr_funcs.c.
References get_to, _str::len, LM_ERR, NULL, _str::s, and sip_msg::to.
| void* ser_memmem | ( | const void * | b1, | |
| const void * | b2, | |||
| size_t | len1, | |||
| size_t | len2 | |||
| ) |
Definition at line 211 of file nhelpr_funcs.c.
References NULL.
Referenced by extract_mediainfo(), extract_mediaip(), extract_rtcp(), find_sdp_line(), and force_rtp_proxy().
1.5.6