#include <stdio.h>#include "../../parser/contact/parse_contact.h"#include "../../parser/contact/contact.h"#include "../../parser/parse_uri.h"#include "encode_contact.h"#include "encode_uri.h"#include "xaddress.h"#include "encode_header.h"#include "encode_parameters.h"

Go to the source code of this file.
Defines | |
| #define | _GNU_SOURCE |
| #define | HAS_EXPIRES_F 0x04 |
| #define | HAS_METHOD_F 0x10 |
| #define | HAS_NAME_F 0x01 |
| #define | HAS_Q_F 0x02 |
| #define | HAS_RECEIVED_F 0x08 |
Functions | |
| int | dump_contact_body_test (char *hdr, int hdrlen, unsigned char *payload, int paylen, FILE *fd, char segregationLevel, char *prefix) |
| int | dump_contact_test (char *hdr, int hdrlen, unsigned char *payload, int paylen, FILE *fd, char segregationLevel, char *prefix) |
| int | encode_contact (char *hdrstart, int hdrlen, contact_t *body, unsigned char *where) |
| int | encode_contact_body (char *hdr, int hdrlen, contact_body_t *contact_parsed, unsigned char *where) |
| int | print_encoded_contact (FILE *fd, char *hdr, int hdrlen, unsigned char *payload, int paylen, char *prefix) |
| int | print_encoded_contact_body (FILE *fd, char *hdr, int hdrlen, unsigned char *payload, int paylen, char *prefix) |
| #define _GNU_SOURCE |
Definition at line 40 of file encode_contact.c.
| #define HAS_EXPIRES_F 0x04 |
Definition at line 53 of file encode_contact.c.
Referenced by dump_contact_test(), encode_contact(), and print_encoded_contact().
| #define HAS_METHOD_F 0x10 |
Definition at line 55 of file encode_contact.c.
Referenced by dump_contact_test(), encode_contact(), and print_encoded_contact().
| #define HAS_NAME_F 0x01 |
Definition at line 51 of file encode_contact.c.
Referenced by dump_contact_test(), dump_digest_test(), dump_route_test(), encode_contact(), encode_digest(), encode_route(), print_encoded_contact(), print_encoded_digest(), and print_encoded_route().
| #define HAS_Q_F 0x02 |
Definition at line 52 of file encode_contact.c.
Referenced by dump_contact_test(), encode_contact(), and print_encoded_contact().
| #define HAS_RECEIVED_F 0x08 |
Definition at line 54 of file encode_contact.c.
Referenced by dump_contact_test(), encode_contact(), encode_via(), print_encoded_contact(), and print_encoded_via().
| int dump_contact_body_test | ( | char * | hdr, | |
| int | hdrlen, | |||
| unsigned char * | payload, | |||
| int | paylen, | |||
| FILE * | fd, | |||
| char | segregationLevel, | |||
| char * | prefix | |||
| ) |
Definition at line 233 of file encode_contact.c.
References dump_contact_test(), dump_standard_hdr_test(), JUNIT, LM_ERR, ONLY_URIS, SEGREGATE, and STAR_F.
Referenced by dump_headers_test().
| int dump_contact_test | ( | char * | hdr, | |
| int | hdrlen, | |||
| unsigned char * | payload, | |||
| int | paylen, | |||
| FILE * | fd, | |||
| char | segregationLevel, | |||
| char * | prefix | |||
| ) |
Definition at line 260 of file encode_contact.c.
References dump_standard_hdr_test(), HAS_EXPIRES_F, HAS_METHOD_F, HAS_NAME_F, HAS_Q_F, HAS_RECEIVED_F, JUNIT, ONLY_URIS, print_uri_junit_tests(), and SEGREGATE.
Referenced by dump_contact_body_test().
| int encode_contact | ( | char * | hdrstart, | |
| int | hdrlen, | |||
| contact_t * | body, | |||
| unsigned char * | where | |||
| ) |
Definition at line 110 of file encode_contact.c.
References encode_parameters(), encode_uri2(), contact::expires, HAS_EXPIRES_F, HAS_METHOD_F, HAS_NAME_F, HAS_Q_F, HAS_RECEIVED_F, param::len, _str::len, LM_ERR, contact::methods, param::name, contact::name, contact::params, parse_uri(), contact::q, contact::received, _str::s, and contact::uri.
Referenced by encode_contact_body().
| int encode_contact_body | ( | char * | hdr, | |
| int | hdrlen, | |||
| contact_body_t * | contact_parsed, | |||
| unsigned char * | where | |||
| ) |
Definition at line 67 of file encode_contact.c.
References contact_body::contacts, encode_contact(), LM_ERR, contact::next, contact_body::star, and STAR_F.
Referenced by encode_header().
| int print_encoded_contact | ( | FILE * | fd, | |
| char * | hdr, | |||
| int | hdrlen, | |||
| unsigned char * | payload, | |||
| int | paylen, | |||
| char * | prefix | |||
| ) |
Definition at line 188 of file encode_contact.c.
References HAS_EXPIRES_F, HAS_METHOD_F, HAS_NAME_F, HAS_Q_F, HAS_RECEIVED_F, print_encoded_parameters(), and print_encoded_uri().
Referenced by print_encoded_contact_body().
| int print_encoded_contact_body | ( | FILE * | fd, | |
| char * | hdr, | |||
| int | hdrlen, | |||
| unsigned char * | payload, | |||
| int | paylen, | |||
| char * | prefix | |||
| ) |
Definition at line 162 of file encode_contact.c.
References LM_ERR, print_encoded_contact(), and STAR_F.
Referenced by print_encoded_header().
1.5.6