#include "contact_ops.h"#include "utils.h"#include "../../mem/mem.h"#include "../../data_lump.h"#include "../../parser/hf.h"#include "../../parser/parse_uri.h"#include "../../parser/contact/parse_contact.h"#include "../../ut.h"#include <stdio.h>#include <string.h>

Go to the source code of this file.
Defines | |
| #define | STRICT_CHECK 1 |
Functions | |
| int | decode2format (str uri, char separator, struct uri_format *format) |
| int | decode_contact (struct sip_msg *msg, char *unused1, char *unused2) |
| int | decode_contact_header (struct sip_msg *msg, char *unused1, char *unused2) |
| int | decode_uri (str uri, char separator, str *result) |
| int | encode2format (str uri, struct uri_format *format) |
| int | encode_contact (struct sip_msg *msg, char *encoding_prefix, char *public_ip) |
| int | encode_uri (str uri, char *encoding_prefix, char *public_ip, char separator, str *result) |
| #define STRICT_CHECK 1 |
Definition at line 29 of file contact_ops.c.
| int decode2format | ( | str | uri, | |
| char | separator, | |||
| struct uri_format * | format | |||
| ) |
Definition at line 457 of file contact_ops.c.
References uri_format::first, uri_format::ip, _str::len, LM_ERR, NULL, uri_format::password, uri_format::port, uri_format::protocol, _str::s, uri_format::second, and uri_format::username.
Referenced by decode_uri().
| int decode_contact | ( | struct sip_msg * | msg, | |
| char * | unused1, | |||
| char * | unused2 | |||
| ) |
Definition at line 140 of file contact_ops.c.
References sip_msg::buf, contact_flds_separator, decode_uri(), DEFAULT_SEPARATOR, sip_msg::first_line, _str::len, LM_ERR, sip_msg::new_uri, NULL, pkg_free, msg_start::request, _str::s, separator, msg_start::u, and contact::uri.
| int decode_contact_header | ( | struct sip_msg * | msg, | |
| char * | unused1, | |||
| char * | unused2 | |||
| ) |
Definition at line 201 of file contact_ops.c.
References cb, sip_msg::contact, contact_flds_separator, contact_body::contacts, decode_uri(), DEFAULT_SEPARATOR, sip_msg::first_line, GET_RURI, HDR_CONTACT_F, _str::len, LM_ERR, contact::next, NULL, parse_contact(), parse_headers(), hdr_field::parsed, patch(), msg_start::request, _str::s, separator, msg_start::u, and contact::uri.
Definition at line 566 of file contact_ops.c.
References decode2format(), uri_format::first, uri_format::ip, _str::len, LM_ERR, NULL, uri_format::password, pkg_malloc, uri_format::port, uri_format::protocol, _str::s, uri_format::second, and uri_format::username.
Referenced by decode_contact(), and decode_contact_header().
| int encode2format | ( | str | uri, | |
| struct uri_format * | format | |||
| ) |
Definition at line 304 of file contact_ops.c.
References uri_format::first, sip_uri::host, uri_format::ip, _str::len, LM_ERR, NULL, parse_uri(), sip_uri::passwd, uri_format::password, sip_uri::port, uri_format::port, uri_format::protocol, _str::s, uri_format::second, sip_uri::transport, sip_uri::transport_val, sip_uri::user, and uri_format::username.
Referenced by encode_uri().
| int encode_contact | ( | struct sip_msg * | msg, | |
| char * | encoding_prefix, | |||
| char * | public_ip | |||
| ) |
Definition at line 46 of file contact_ops.c.
References cb, sip_msg::contact, contact_flds_separator, contact_body::contacts, DEFAULT_SEPARATOR, encode_uri(), HDR_CONTACT_F, _str::len, LM_ERR, contact::next, NULL, parse_contact(), parse_headers(), hdr_field::parsed, patch(), _str::s, separator, and contact::uri.
Definition at line 370 of file contact_ops.c.
References encode2format(), uri_format::first, uri_format::ip, _str::len, LM_ERR, NULL, uri_format::password, pkg_free, pkg_malloc, uri_format::port, uri_format::protocol, _str::s, uri_format::second, snprintf, and uri_format::username.
Referenced by encode_contact().
1.5.6