#include <stdio.h>
#include "error.h"
#include "str.h"
#include "parser/msg_parser.h"
#include "mem/mem.h"

Go to the source code of this file.
Functions | |
| int | err2reason_phrase (int ser_error, int *sip_error, char *phrase, int etl, char *signature) |
| ser error -> SIP error | |
| char * | error_text (int code) |
| SIP error core -> SIP text. | |
| void | get_reply_status (str *status, struct sip_msg *reply, int code) |
| return pkg_malloc-ed reply status in status->s | |
Variables | |
| int | prev_ser_error = -1 |
| int | ser_error = -1 |
| processing status of the last command | |
Definition in file error.c.
| int err2reason_phrase | ( | int | ser_error, | |
| int * | sip_error, | |||
| char * | phrase, | |||
| int | etl, | |||
| char * | signature | |||
| ) |
ser error -> SIP error
| ser_error | current internal ser error |
| sip_error | the sip error code to which ser error will be turned |
| phrase | resulting error text |
| etl | error text buffer length |
| signature | extra text to be appended |
Definition at line 49 of file error.c.
References E_BAD_ADDRESS, E_BAD_REQ, E_BAD_SERVER, E_BAD_TO, E_BAD_TUPEL, E_BAD_URI, E_EXEC, E_IP_BLOCKED, E_OUT_OF_MEM, E_Q_DEC_MISSING, E_Q_EMPTY, E_Q_INV_CHAR, E_Q_TOO_BIG, E_SEND, E_TOO_MANY_BRANCHES, and snprintf.
Referenced by ac_uac_req(), kill_transaction(), mi_tm_uac_dlg(), and sl_reply_error().
| char* error_text | ( | int | code | ) |
SIP error core -> SIP text.
Definition at line 128 of file error.c.
Referenced by env_set_code_status(), get_reply_status(), and relay_reply().
return pkg_malloc-ed reply status in status->s
Definition at line 213 of file error.c.
References error_text(), FAKED_REPLY, sip_msg::first_line, _str::len, LM_CRIT, LM_ERR, pkg_malloc, msg_start::reply, _str::s, and msg_start::u.
Referenced by mi_uac_dlg_hdl().
| int prev_ser_error = -1 |
previous error
Definition at line 47 of file error.c.
Referenced by do_action(), and sl_reply_error().
| int ser_error = -1 |
processing status of the last command
current function's error;
Definition at line 45 of file error.c.
Referenced by add_uac(), anchor_lump(), append_branch(), build_cell(), build_req_buf_from_sip_req(), check_transaction_quadruple(), clen_builder(), do_action(), e2e_cancel_branch(), exec_avp(), exec_msg(), exec_str(), fixup_phostport2proxy(), forward_request(), hostent_cpy(), id_builder(), init_rb(), insert_cond_lump_after(), insert_cond_lump_before(), insert_new_lump_after(), insert_new_lump_before(), insert_subst_lump_after(), insert_subst_lump_before(), kill_transaction(), mk_proxy(), mk_shm_proxy(), parse_headers(), parse_uri(), pre_print_uac_request(), print_uac_request(), received_builder(), rport_builder(), t_forward_nonack(), t_relay_inerr2scripterr(), t_relay_to(), t_uac(), update_uac_dst(), uri2sock(), uri2su(), via_builder(), and w_as_relay_t().
1.5.6