#include "../../ip_addr.h"
#include "dlg.h"


Go to the source code of this file.
Defines | |
| #define | CALLID "Call-ID: " |
| #define | CALLID_LEN (sizeof(CALLID)-1) |
| #define | CSEQ "CSeq: " |
| #define | CSEQ_LEN (sizeof(CSEQ)-1) |
| #define | FROM "From: " |
| #define | FROM_LEN (sizeof(FROM)-1) |
| #define | FROMTAG ";tag=" |
| #define | FROMTAG_LEN (sizeof(FROMTAG)-1) |
| #define | LOCAL_MAXFWD_VALUE "70" |
| #define | TO "To: " |
| #define | TO_LEN (sizeof(TO)-1) |
| #define | TOTAG ";tag=" |
| #define | TOTAG_LEN (sizeof(TOTAG)-1) |
Functions | |
| char * | build_dlg_ack (struct sip_msg *rpl, struct cell *Trans, unsigned int branch, str *to, unsigned int *len) |
| char * | build_local (struct cell *Trans, unsigned int branch, unsigned int *len, char *method, int method_len, str *to) |
| char * | build_uac_cancel (str *headers, str *body, struct cell *Trans, unsigned int branch, unsigned int *len) |
| char * | build_uac_req (str *method, str *headers, str *body, dlg_t *dialog, int branch, struct cell *t, int *len) |
| char * | build_uac_request (str msg_type, str dst, str from, str fromtag, int cseq, str callid, str headers, str body, int branch, struct cell *t, unsigned int *len) |
| void | check_hdrs_changes (struct sip_msg *msg) |
| Check if From/To/CSeq were altered and set approriate flags. | |
| char * | print_callid_mini (char *target, str callid) |
| char * | print_cseq_mini (char *target, str *cseq, str *method) |
| int | t_calc_branch (struct cell *t, int b, char *branch, int *branch_len) |
Definition in file t_msgbuilder.h.
| #define CALLID "Call-ID: " |
Definition at line 45 of file t_msgbuilder.h.
Referenced by acc_log_init(), and print_callid_mini().
| #define CALLID_LEN (sizeof(CALLID)-1) |
Definition at line 46 of file t_msgbuilder.h.
Referenced by build_uac_req(), print_callid(), and print_callid_mini().
| #define CSEQ "CSeq: " |
| #define CSEQ_LEN (sizeof(CSEQ)-1) |
Definition at line 42 of file t_msgbuilder.h.
Referenced by build_uac_req(), print_cseq(), and print_cseq_mini().
| #define FROM "From: " |
| #define FROM_LEN (sizeof(FROM)-1) |
| #define FROMTAG ";tag=" |
| #define FROMTAG_LEN (sizeof(FROMTAG)-1) |
| #define LOCAL_MAXFWD_VALUE "70" |
Definition at line 53 of file t_msgbuilder.h.
| #define TO "To: " |
Definition at line 43 of file t_msgbuilder.h.
Referenced by bla_handle_notify(), extract_sdialog_info(), Notify2Xmpp(), print_to(), rls_handle_notify(), rls_handle_subscribe(), subs_cback_func(), and update_contact().
| #define TO_LEN (sizeof(TO)-1) |
| #define TOTAG ";tag=" |
| #define TOTAG_LEN (sizeof(TOTAG)-1) |
| char* build_dlg_ack | ( | struct sip_msg * | rpl, | |
| struct cell * | Trans, | |||
| unsigned int | branch, | |||
| str * | to, | |||
| unsigned int * | len | |||
| ) |
Definition at line 533 of file t_msgbuilder.c.
References ACK, ACK_LEN, append_str, calc_routeset_len(), cell::callid, CONTENT_LENGTH, CONTENT_LENGTH_LEN, CRLF, CRLF_LEN, cell::cseq_n, retr_buf::dst, sip_msg::first_line, free_rte_list(), cell::from, get_contact_uri(), _str::len, LM_ERR, MAX_BRANCH_PARAM_LEN, pkg_free, print_rs(), process_routeset(), socket_info::proto, msg_start::reply, ua_client::request, _str::s, dest_info::send_sock, server_signature, set_hostport, shm_malloc(), SIP_VERSION, SIP_VERSION_LEN, t_calc_branch(), msg_start::u, cell::uac, ua_client::uri, user_agent_header, via_builder(), and via_len.
Referenced by send_ack().
| char* build_local | ( | struct cell * | Trans, | |
| unsigned int | branch, | |||
| unsigned int * | len, | |||
| char * | method, | |||
| int | method_len, | |||
| str * | to | |||
| ) |
Definition at line 221 of file t_msgbuilder.c.
References ACK_LEN, append_str, retr_buf::buffer, cell::callid, CONTENT_LENGTH, CONTENT_LENGTH_LEN, CRLF, CRLF_LEN, cell::cseq_n, retr_buf::dst, extract_hdrs(), extract_parsed_hdrs(), FL_USE_UAC_CSEQ, FL_USE_UAC_FROM, FL_USE_UAC_TO, free_hdr_field_lst(), cell::from, HDR_ROUTE_T, is_local, hdr_field::len, _str::len, LM_DBG, LM_ERR, LOCAL_MAXFWD_HEADER, LOCAL_MAXFWD_HEADER_LEN, MAX_BRANCH_PARAM_LEN, sip_msg::msg_flags, hdr_field::name, hdr_field::next, NULL, pkg_free, dest_info::proto, ua_client::request, ua_server::request, _str::s, dest_info::send_sock, server_signature, set_hostport, shm_malloc(), SIP_VERSION, SIP_VERSION_LEN, t_calc_branch(), hdr_field::type, cell::uac, cell::uas, ua_client::uri, user_agent_header, via_builder(), and via_len.
Referenced by build_cancel(), and send_ack().
| char* build_uac_cancel | ( | str * | headers, | |
| str * | body, | |||
| struct cell * | Trans, | |||
| unsigned int | branch, | |||
| unsigned int * | len | |||
| ) |
Definition at line 978 of file t_msgbuilder.c.
References append_str, cell::callid, CANCEL, CANCEL_LEN, CONTENT_LENGTH, CONTENT_LENGTH_LEN, CRLF, CRLF_LEN, cell::cseq_n, retr_buf::dst, cell::from, _str::len, LM_DBG, LM_ERR, MAX_BRANCH_PARAM_LEN, NULL, pkg_free, print_content_length(), dest_info::proto, ua_client::request, _str::s, dest_info::send_sock, server_signature, set_hostport, shm_malloc(), SIP_VERSION, SIP_VERSION_LEN, t_calc_branch(), cell::to, cell::uac, ua_client::uri, USER_AGENT, USER_AGENT_LEN, via_builder(), and via_len.
Referenced by t_uac_cancel().
| char* build_uac_req | ( | str * | method, | |
| str * | headers, | |||
| str * | body, | |||
| dlg_t * | dialog, | |||
| int | branch, | |||
| struct cell * | t, | |||
| int * | len | |||
| ) |
Definition at line 865 of file t_msgbuilder.c.
References append_str, assemble_via(), buf, calculate_routeset_length(), dlg_id::call_id, CALLID_LEN, CONTENT_LENGTH, CONTENT_LENGTH_LEN, CRLF, CRLF_LEN, CSEQ_LEN, FROM_LEN, FROMTAG_LEN, dlg::hooks, dlg::id, _str::len, LM_ERR, dlg::loc_dname, dlg_id::loc_tag, dlg::loc_uri, pkg_free, print_callid(), print_content_length(), print_cseq(), print_cseq_num(), print_from(), print_request_uri(), print_routeset(), print_to(), dlg::rem_dname, dlg_id::rem_tag, dlg::rem_uri, dlg_hooks::request_uri, _str::s, dlg::send_sock, server_signature, shm_malloc(), SIP_VERSION_LEN, TO_LEN, TOTAG_LEN, and user_agent_header.
Referenced by t_uac().
| char* build_uac_request | ( | str | msg_type, | |
| str | dst, | |||
| str | from, | |||
| str | fromtag, | |||
| int | cseq, | |||
| str | callid, | |||
| str | headers, | |||
| str | body, | |||
| int | branch, | |||
| struct cell * | t, | |||
| unsigned int * | len | |||
| ) |
| void check_hdrs_changes | ( | struct sip_msg * | msg | ) |
Check if From/To/CSeq were altered and set approriate flags.
Definition at line 1093 of file t_msgbuilder.c.
References sip_msg::add_rm, sip_msg::buf, sip_msg::cseq, FL_USE_UAC_CSEQ, FL_USE_UAC_FROM, FL_USE_UAC_TO, sip_msg::from, hdr_field::len, lump::len, LUMP_DEL, LUMP_NOP, sip_msg::msg_flags, hdr_field::name, lump::next, NULL, lump::offset, lump::op, _str::s, sip_msg::to, and lump::u.
Referenced by pre_print_uac_request(), run_failure_handlers(), and t_newtran().
| char* print_callid_mini | ( | char * | target, | |
| str | callid | |||
| ) |
Definition at line 843 of file t_msgbuilder.c.
References append_str, CALLID, CALLID_LEN, CRLF, CRLF_LEN, _str::len, and _str::s.
Referenced by print_callid(), and t_lookup_callid().
Definition at line 820 of file t_msgbuilder.c.
References append_str, CSEQ, CSEQ_LEN, _str::len, and _str::s.
Referenced by print_cseq(), and t_lookup_callid().
| int t_calc_branch | ( | struct cell * | t, | |
| int | b, | |||
| char * | branch, | |||
| int * | branch_len | |||
| ) |
Definition at line 966 of file t_msgbuilder.c.
References branch_builder(), cell::hash_index, cell::label, cell::md5, and syn_branch.
Referenced by assemble_via(), build_dlg_ack(), build_local(), build_uac_cancel(), pre_print_uac_request(), and t_newtran().
1.5.6