22 #ifndef _SIP_REQRESP_H 23 #define _SIP_REQRESP_H 71 int parse_uri(
char *uri,
const char *scheme,
char **ret_name,
char **
pass,
82 char **hostport,
struct uriparams *params,
char **headers,
145 struct uriparams *params,
char **headers,
195 int sip_uri_cmp(
const char *input1,
const char *input2);
int parse_name_andor_addr(char *uri, const char *scheme, char **name, char **user, char **pass, char **domain, struct uriparams *params, char **headers, char **remander)
Parse the ABNF structure name-andor-addr = name-addr / addr-spec into its components and return any t...
char * get_in_brackets(char *tmp)
Pick out text in brackets from character string.
void free_via(struct sip_via *v)
void sip_request_parser_register_tests(void)
register request parsing tests
int sip_uri_cmp(const char *input1, const char *input2)
Compare two URIs as described in RFC 3261 Section 19.1.4.
static int input(yyscan_t yyscanner)
int parse_uri_full(char *uri, const char *scheme, char **user, char **pass, char **hostport, struct uriparams *params, char **headers, char **residue)
parses a URI in to all of its components and any trailing residue
int get_in_brackets_const(const char *src, const char **start, int *length)
Get text in brackets on a const without copy.
Structure to store Via information.
int parse_contact_header(char *contactheader, struct contactliststruct *contactlist)
AST_LIST_HEAD_NOLOCK(contactliststruct, contact)
int get_name_and_number(const char *hdr, char **name, char **number)
Get name and number from sip header.
int get_in_brackets_full(char *tmp, char **out, char **residue)
Get text in brackets and any trailing residue.
int parse_uri(char *uri, const char *scheme, char **ret_name, char **pass, char **hostport, char **transport)
parses a URI in its components.
const char * get_calleridname(const char *input, char *output, size_t outputsize)
Get caller id name from SIP headers, copy into output buffer.
#define AST_LIST_ENTRY(type)
Declare a forward link structure inside a list entry.
static void parse(struct mgcp_request *req)
structure to hold users read from users.conf
void sip_reqresp_parser_exit(void)
Free resources used by request and response parser.
void sip_request_parser_unregister_tests(void)
unregister request parsing tests
int get_comma(char *parse, char **out)
Parse all contact header contacts.
struct sip_via * parse_via(const char *header)
Parse a Via header.
int sip_reqresp_parser_init(void)
initialize request and response parser data
unsigned int parse_sip_options(const char *options, char *unsupported, size_t unsupported_len)
Parse supported header in incoming packet.