Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

error.c File Reference

#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)
char * error_text (int code)
void get_reply_status (str *status, struct sip_msg *reply, int code)

Variables

int ser_error = -1
int prev_ser_error = -1


Function Documentation

int err2reason_phrase int  ser_error,
int sip_error,
char *  phrase,
int  etl,
char *  signature
 

Definition at line 45 of file error.c.

References E_BAD_ADDRESS, E_BAD_REQ, E_BAD_TO, E_BAD_TUPEL, E_BAD_URI, E_CANCELED, E_EXEC, E_OK, 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, ser_error, and snprintf.

Referenced by kill_transaction(), kill_transaction_unsafe(), and sl_reply_error().

char* error_text int  code  ) 
 

Definition at line 135 of file error.c.

Referenced by get_reply_status(), and relay_reply().

void get_reply_status str status,
struct sip_msg reply,
int  code
 

Definition at line 205 of file error.c.

References error_text(), sip_msg::first_line, L_CRIT, L_ERR, _str::len, LOG, pkg_malloc, msg_start::reason, msg_start::reply, _str::s, str, and msg_start::u.

Referenced by log_missed().


Variable Documentation

int prev_ser_error = -1
 

Definition at line 43 of file error.c.

Referenced by do_action(), and sl_reply_error().

int ser_error = -1
 

Definition at line 41 of file error.c.

Referenced by add_uac(), adjust_clen(), anchor_lump(), append_branch(), build_cell(), build_req_buf_from_sip_req(), check_transaction_quadruple(), clen_builder(), do_action(), e2e_cancel_branch(), err2reason_phrase(), exec_msg(), exec_str(), 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(), lookup(), lookup2(), mk_proxy(), parse_headers(), parse_uri(), print_uac_request(), received_builder(), rport_builder(), sip_hostport2su(), t_forward_cancel(), t_forward_nonack(), t_relay_cancel(), t_relay_to(), t_uac_prepare(), and via_builder().


Generated on Thu Jul 29 04:15:54 2010 for SIPExpressRouter by  doxygen 1.3.9.1