#include <stdlib.h>
#include <string.h>
#include "dprint.h"
#include "errinfo.h"

Go to the source code of this file.
Functions | |
| err_info_t * | get_err_info (void) |
| Get global error state. | |
| void | init_err_info (void) |
| Initialize global error state. | |
| void | set_err_info (int ec, int el, char *info) |
| Set suggested error info message. | |
| void | set_err_reply (int rc, char *rr) |
| Set suggested error reply. | |
Variables | |
| err_info_t | _oser_err_info |
Definition in file errinfo.c.
| err_info_t* get_err_info | ( | void | ) |
| void init_err_info | ( | void | ) |
Initialize global error state.
Definition at line 44 of file errinfo.c.
Referenced by run_action_list(), and run_top_route().
| void set_err_info | ( | int | ec, | |
| int | el, | |||
| char * | info | |||
| ) |
Set suggested error info message.
Definition at line 51 of file errinfo.c.
References err_info_::eclass, err_info_::info, _str::len, err_info_::level, LM_DBG, and _str::s.
Referenced by get_hdr_field(), parse_from_header(), parse_from_uri(), parse_orig_ruri(), parse_ppi_uri(), parse_sip_msg_uri(), and parse_to_uri().
| void set_err_reply | ( | int | rc, | |
| char * | rr | |||
| ) |
Set suggested error reply.
Definition at line 66 of file errinfo.c.
References _str::len, err_info_::rcode, err_info_::rreason, and _str::s.
Referenced by get_hdr_field(), parse_from_header(), parse_from_uri(), parse_orig_ruri(), parse_ppi_uri(), parse_sip_msg_uri(), and parse_to_uri().
1.5.6