encode_msg.h File Reference

#include "../../parser/hf.h"
#include "../../parser/msg_parser.h"

Include dependency graph for encode_msg.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CONTENT_IDX   (MSG_LEN_IDX+2)
#define GET_PAY_SIZE(A)   (ntohs(((short*)( A ))[1]) + ntohs(((short*)( A ))[2]))
#define MAX_ENCODED_MSG   1500
#define MAX_ERROR   32
#define MAX_HEADERS   32
#define MAX_MESSAGE_LEN   1500
#define METHOD_CODE_IDX   (CONTENT_IDX+2)
#define MSG_LEN_IDX   (MSG_START_IDX+2)
#define MSG_START_IDX   (TYPE_IDX+2)
#define REQUEST_URI_IDX   (VERSION_IDX+2)
#define TYPE_IDX   0
#define URI_REASON_IDX   (METHOD_CODE_IDX+2)
#define VERSION_IDX   (URI_REASON_IDX+2)

Functions

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 *f)
int print_encoded_msg (FILE *fd, char *code, char *prefix)

Variables

unsigned int theSignal


Define Documentation

#define CONTENT_IDX   (MSG_LEN_IDX+2)

Definition at line 34 of file encode_msg.h.

Referenced by encode_msg(), and print_encoded_msg().

#define GET_PAY_SIZE (  )     (ntohs(((short*)( A ))[1]) + ntohs(((short*)( A ))[2]))

#define MAX_ENCODED_MSG   1500

Definition at line 28 of file encode_msg.h.

Referenced by encode_msg(), and print_msg_info().

#define MAX_ERROR   32

Definition at line 26 of file encode_msg.h.

#define MAX_HEADERS   32

Definition at line 27 of file encode_msg.h.

#define MAX_MESSAGE_LEN   1500

Definition at line 29 of file encode_msg.h.

Referenced by encode_msg(), and print_msg_info().

#define METHOD_CODE_IDX   (CONTENT_IDX+2)

Definition at line 35 of file encode_msg.h.

Referenced by encode_msg(), and print_encoded_msg().

#define MSG_LEN_IDX   (MSG_START_IDX+2)

Definition at line 33 of file encode_msg.h.

Referenced by dump_msg_test(), encode_msg(), print_encoded_msg(), and print_msg_junit_test().

#define MSG_START_IDX   (TYPE_IDX+2)

Definition at line 32 of file encode_msg.h.

Referenced by dump_msg_test(), encode_msg(), print_encoded_msg(), and print_msg_junit_test().

#define REQUEST_URI_IDX   (VERSION_IDX+2)

Definition at line 38 of file encode_msg.h.

Referenced by dump_msg_test(), encode_msg(), print_encoded_msg(), and print_msg_junit_test().

#define TYPE_IDX   0

Definition at line 31 of file encode_msg.h.

#define URI_REASON_IDX   (METHOD_CODE_IDX+2)

Definition at line 36 of file encode_msg.h.

Referenced by encode_msg(), and print_encoded_msg().

#define VERSION_IDX   (URI_REASON_IDX+2)

Definition at line 37 of file encode_msg.h.

Referenced by encode_msg(), and print_encoded_msg().


Function Documentation

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 f  ) 

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


Variable Documentation

unsigned int theSignal

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