encode_contact.c File Reference

#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"

Include dependency graph for encode_contact.c:

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 Documentation

#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

#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


Function Documentation

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 
)

Definition at line 162 of file encode_contact.c.

References LM_ERR, print_encoded_contact(), and STAR_F.

Referenced by print_encoded_header().


Generated on Tue May 22 16:00:39 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6