#include "str.h"


Go to the source code of this file.
Data Structures | |
| struct | err_info_ |
ErrorClasses error clases | |
| #define | OSER_EC_PARSER 1 |
| #define | OSER_EC_PMEMORY 2 |
| #define | OSER_EC_SMEMORY 3 |
| #define | OSER_EL_CRITIC 1 |
| #define | OSER_EL_HIGH 2 |
| #define | OSER_EL_LOW 5 |
| #define | OSER_EL_MEDIUM 3 |
| #define | OSER_EL_NORMAL 4 |
| typedef struct err_info_ | err_info_t |
| 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. | |
Definition in file errinfo.h.
| #define OSER_EC_PARSER 1 |
parse error
Definition at line 35 of file errinfo.h.
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().
| #define OSER_EL_MEDIUM 3 |
severity level normal - used by parsing errors
Definition at line 41 of file errinfo.h.
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().
| typedef struct err_info_ err_info_t |
| 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