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


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 CONTENT_IDX (MSG_LEN_IDX+2) |
| #define GET_PAY_SIZE | ( | A | ) | (ntohs(((short*)( A ))[1]) + ntohs(((short*)( A ))[2])) |
Definition at line 40 of file encode_msg.h.
Referenced by coded_buffered_printer(), create_as_event_sl(), create_as_event_t(), and encode_msg().
| #define MAX_ENCODED_MSG 1500 |
| #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 |
| #define METHOD_CODE_IDX (CONTENT_IDX+2) |
| #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) |
| #define VERSION_IDX (URI_REASON_IDX+2) |
| int dump_msg_test | ( | char * | code, | |
| FILE * | fd, | |||
| char | header, | |||
| char | segregationLevel | |||
| ) |
Definition at line 361 of file encode_msg.c.
References ALSO_RURI, dump_headers_test(), JUNIT, MSG_LEN_IDX, MSG_START_IDX, print_uri_junit_tests(), REQUEST_URI_IDX, and theSignal.
| int encode_msg | ( | struct sip_msg * | msg, | |
| char * | payload, | |||
| int | len | |||
| ) |
Definition at line 149 of file encode_msg.c.
References sip_msg::buf, CONTENT_IDX, encode_header(), encode_uri2(), sip_msg::first_line, get_body(), GET_PAY_SIZE, HDR_EOH_F, sip_msg::headers, _str::len, msg_start::len, sip_msg::len, LM_DBG, LM_ERR, MAX_ENCODED_MSG, MAX_MESSAGE_LEN, METHOD_CODE_IDX, MSG_LEN_IDX, MSG_START_IDX, hdr_field::name, hdr_field::next, NULL, parse_headers(), parse_uri(), msg_start::reply, msg_start::request, request(), REQUEST_URI_IDX, _str::s, SIP_REPLY, SIP_REQUEST, hdr_field::type, msg_start::type, msg_start::u, URI_REASON_IDX, and VERSION_IDX.
Referenced by create_as_action_reply(), create_as_event_sl(), create_as_event_t(), and print_msg_info().
| char get_header_code | ( | struct hdr_field * | f | ) |
Definition at line 63 of file encode_msg.c.
References HDR_ACCEPT_T, HDR_ALLOW_T, HDR_AUTHORIZATION_T, HDR_CALLID_T, HDR_CONTACT_T, HDR_CONTENTLENGTH_T, HDR_CONTENTTYPE_T, HDR_CSEQ_T, HDR_EXPIRES_T, HDR_FROM_T, HDR_PROXYAUTH_T, HDR_RECORDROUTE_T, HDR_REFER_TO_T, HDR_ROUTE_T, HDR_RPID_T, HDR_SUBJECT_T, HDR_SUPPORTED_T, HDR_TO_T, HDR_VIA_T, and hdr_field::type.
| int print_encoded_msg | ( | FILE * | fd, | |
| char * | code, | |||
| char * | prefix | |||
| ) |
Definition at line 302 of file encode_msg.c.
References CONTENT_IDX, METHOD_CODE_IDX, MSG_LEN_IDX, MSG_START_IDX, print_encoded_header(), print_encoded_uri(), REQUEST_URI_IDX, URI_REASON_IDX, and VERSION_IDX.
Referenced by coded_buffered_printer(), and print_msg_info().
| 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().
1.5.6