#include <string.h>#include "../hf.h"#include "../../mem/mem.h"#include "../../dprint.h"#include "../../trim.h"#include "parse_contact.h"

Go to the source code of this file.
Functions | |
| int | contact_iterator (contact_t **c, struct sip_msg *msg, contact_t *prev) |
| static int | contact_parser (char *_s, int _l, contact_body_t *_c) |
| void | free_contact (contact_body_t **_c) |
| int | parse_contact (struct hdr_field *_h) |
| void | print_contact (FILE *_o, contact_body_t *_c) |
Definition at line 125 of file parse_contact.c.
References cb, sip_msg::contact, contact_body::contacts, HDR_CONTACT_F, HDR_CONTACT_T, sip_msg::last_header, LM_ERR, hdr_field::next, contact::next, parse_contact(), parse_headers(), hdr_field::parsed, and hdr_field::type.
Referenced by add_rcv_param_f(), check_message_support(), and check_register().
| static int contact_parser | ( | char * | _s, | |
| int | _l, | |||
| contact_body_t * | _c | |||
| ) | [inline, static] |
Definition at line 38 of file parse_contact.c.
References contact_body::contacts, _str::len, LM_ERR, parse_contacts(), _str::s, contact_body::star, and trim_leading().
Referenced by parse_contact().
| void free_contact | ( | contact_body_t ** | _c | ) |
Definition at line 98 of file parse_contact.c.
References free_contacts(), and pkg_free.
Referenced by clean_hdr_field(), and shmcontact2dset().
| int parse_contact | ( | struct hdr_field * | _h | ) |
Definition at line 68 of file parse_contact.c.
References hdr_field::body, contact_parser(), _str::len, LM_ERR, hdr_field::parsed, pkg_free, pkg_malloc, and _str::s.
Referenced by add_contacts_to_loc_set(), assemble_msg(), bla_handle_notify(), check_message_support(), check_register(), contact_iterator(), decode_contact_header(), encode_contact(), encode_header(), extract_sdialog_info(), get_contact_uri(), get_register_expire(), m_store(), parse_message(), populate_leg_info(), shmcontact2dset(), and subs_cback_func().
| void print_contact | ( | FILE * | _o, | |
| contact_body_t * | _c | |||
| ) |
Definition at line 112 of file parse_contact.c.
References contact_body::contacts, print_contacts(), and contact_body::star.
1.5.6