encode_msg.c File Reference

#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stddef.h>
#include "../../parser/msg_parser.h"
#include "../../parser/parse_via.h"
#include "../../parser/parse_uri.h"
#include "../../parser/parse_from.h"
#include "../../mem/mem.h"
#include "../../dprint.h"
#include "encode_header.h"
#include "encode_uri.h"
#include "encode_msg.h"
#include "xaddress.h"

Include dependency graph for encode_msg.c:

Go to the source code of this file.

Defines

#define _GNU_SOURCE

Functions

int decode_msg (struct sip_msg *msg, char *code, unsigned int len)
int dump_msg_test (char *code, FILE *fd, char header, char segregationLevel)
int encode_msg (struct sip_msg *msg, char *payload, int len)
char get_header_code (struct hdr_field *hf)
int print_encoded_msg (FILE *fd, char *code, char *prefix)
int print_msg_junit_test (char *code, FILE *fd, char header, char segregationLevel)

Variables

unsigned int theSignal = 0xAA55AA55


Define Documentation

#define _GNU_SOURCE

Definition at line 40 of file encode_msg.c.


Function Documentation

int decode_msg ( struct sip_msg msg,
char *  code,
unsigned int  len 
)

Definition at line 280 of file encode_msg.c.

References sip_msg::buf, HDR_EOH_F, sip_msg::len, LM_ERR, NULL, and parse_headers().

int dump_msg_test ( char *  code,
FILE *  fd,
char  header,
char  segregationLevel 
)

int encode_msg ( struct sip_msg msg,
char *  payload,
int  len 
)

char get_header_code ( struct hdr_field hf  ) 

int print_encoded_msg ( FILE *  fd,
char *  code,
char *  prefix 
)

int print_msg_junit_test ( char *  code,
FILE *  fd,
char  header,
char  segregationLevel 
)


Variable Documentation

unsigned int theSignal = 0xAA55AA55

Definition at line 61 of file encode_msg.c.

Referenced by dump_msg_test(), dump_standard_hdr_test(), and print_msg_junit_test().


Generated on Wed May 23 06:01:02 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6