#include "parse_to.h"
#include <stdlib.h>
#include <string.h>
#include "../dprint.h"
#include "msg_parser.h"
#include "parse_uri.h"
#include "../ut.h"
#include "../mem/mem.h"
#include "../errinfo.h"

Go to the source code of this file.
Defines | |
| #define | add_param(_param, _body) |
Enumerations | |
| enum | { START_TO, DISPLAY_QUOTED, E_DISPLAY_QUOTED, DISPLAY_TOKEN, DISPLAY_TOKEN2, S_URI_ENCLOSED, URI_ENCLOSED, E_URI_ENCLOSED, URI_OR_TOKEN, MAYBE_URI_END, END, F_CR, F_LF, F_CRLF } |
| enum | { S_PARA_NAME = 20, PARA_NAME, S_EQUAL, S_PARA_VALUE, TAG1, TAG2, TAG3, PARA_VALUE_TOKEN, PARA_VALUE_QUOTED, E_PARA_VALUE } |
Functions | |
| void | destroy_to (struct to_body *tb) |
| void | free_to (struct to_body *tb) |
| static void | free_to_params (struct to_body *tb) |
| char * | parse_to (char *buffer, char *end, struct to_body *to_b) |
| static char * | parse_to_param (char *buffer, char *end, struct to_body *to_b, int *returned_status) |
| struct sip_uri * | parse_to_uri (struct sip_msg *msg) |
Definition in file parse_to.c.
| #define add_param | ( | _param, | |||
| _body | ) |
| anonymous enum |
| START_TO | |
| DISPLAY_QUOTED | |
| E_DISPLAY_QUOTED | |
| DISPLAY_TOKEN | |
| DISPLAY_TOKEN2 | |
| S_URI_ENCLOSED | |
| URI_ENCLOSED | |
| E_URI_ENCLOSED | |
| URI_OR_TOKEN | |
| MAYBE_URI_END | |
| END | |
| F_CR | |
| F_LF | |
| F_CRLF |
Definition at line 46 of file parse_to.c.
| anonymous enum |
| S_PARA_NAME | |
| PARA_NAME | |
| S_EQUAL | |
| S_PARA_VALUE | |
| TAG1 | |
| TAG2 | |
| TAG3 | |
| PARA_VALUE_TOKEN | |
| PARA_VALUE_QUOTED | |
| E_PARA_VALUE |
Definition at line 53 of file parse_to.c.
| void destroy_to | ( | struct to_body * | tb | ) |
| void free_to | ( | struct to_body * | tb | ) |
Definition at line 86 of file parse_to.c.
References free_to_params(), and pkg_free.
Referenced by clean_hdr_field().
| static void free_to_params | ( | struct to_body * | tb | ) | [inline, static] |
Definition at line 74 of file parse_to.c.
References to_param::next, to_body::param_lst, and pkg_free.
Referenced by destroy_to(), free_to(), and parse_to_param().
| char* parse_to | ( | char * | buffer, | |
| char * | end, | |||
| struct to_body * | to_b | |||
| ) |
To header field parser
Definition at line 482 of file parse_to.c.
References to_body::body, to_body::display, DISPLAY_QUOTED, DISPLAY_TOKEN, DISPLAY_TOKEN2, E_DISPLAY_QUOTED, E_PARA_VALUE, E_URI_ENCLOSED, END, to_body::error, F_CR, F_CRLF, F_LF, _str::len, LM_DBG, LM_ERR, MAYBE_URI_END, PARSE_ERROR, PARSE_OK, parse_to_param(), _str::s, S_URI_ENCLOSED, START_TO, to_body::uri, URI_ENCLOSED, URI_OR_TOKEN, and ZSW.
Referenced by bla_handle_notify(), encode_header(), extract_sdialog_info(), get_hdr_field(), m_dump(), m_store(), Notify2Xmpp(), parse_diversion_header(), parse_from_header(), parse_pai_header(), parse_ppi_header(), parse_refer_to_header(), parse_rpid_header(), rls_handle_notify(), rls_handle_subscribe(), subs_cback_func(), and update_contact().
| static char* parse_to_param | ( | char * | buffer, | |
| char * | end, | |||
| struct to_body * | to_b, | |||
| int * | returned_status | |||
| ) | [inline, static] |
Definition at line 99 of file parse_to.c.
References add_param, E_PARA_VALUE, to_body::error, F_CR, F_CRLF, F_LF, free_to_params(), GENERAL_PARAM, _str::len, LM_ERR, to_param::name, PARA_NAME, PARA_VALUE_QUOTED, PARA_VALUE_TOKEN, PARSE_ERROR, pkg_free, pkg_malloc, _str::s, S_EQUAL, S_PARA_NAME, S_PARA_VALUE, TAG1, TAG2, TAG3, TAG_PARAM, to_param::type, to_param::value, and ZSW.
Referenced by parse_to().
Definition at line 754 of file parse_to.c.
References get_to, sip_uri::host, _str::len, LM_ERR, NULL, OSER_EC_PARSER, OSER_EL_MEDIUM, parse_uri(), hdr_field::parsed, to_body::parsed_uri, _str::s, set_err_info(), set_err_reply(), sip_msg::to, to_body::uri, and sip_uri::user.
Referenced by check_to(), get_realm(), get_uri_user(), and get_username_domain().
1.5.6