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

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 _GNU_SOURCE |
Definition at line 40 of file encode_msg.c.
| 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 | |||
| ) |
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 * | hf | ) |
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().
| int print_msg_junit_test | ( | char * | code, | |
| FILE * | fd, | |||
| char | header, | |||
| char | segregationLevel | |||
| ) |
Definition at line 427 of file encode_msg.c.
References ALSO_RURI, dump_headers_test(), MSG_LEN_IDX, MSG_START_IDX, REQUEST_URI_IDX, and theSignal.
| 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().
1.5.6