#include "msg_parser.h"


Go to the source code of this file.
Defines | |
| #define | get_ppi(p_msg) ((struct to_body*)(p_msg)->ppi->parsed) |
Functions | |
| int | parse_ppi_header (struct sip_msg *msg) |
| This method is used to parse P-Preferred-Identity header (RFC 3325). | |
| struct sip_uri * | parse_ppi_uri (struct sip_msg *msg) |
| Parse P-Preferred-Identity header URI. | |
Definition in file parse_ppi.h.
| #define get_ppi | ( | p_msg | ) | ((struct to_body*)(p_msg)->ppi->parsed) |
casting macro for accessing P-Preferred-Identity body
Definition at line 37 of file parse_ppi.h.
Referenced by parse_ppi_uri().
| int parse_ppi_header | ( | struct sip_msg * | msg | ) |
This method is used to parse P-Preferred-Identity header (RFC 3325).
Currently only one name-addr / addr-spec is supported in the header and it must contain a sip or sips URI.
| msg | sip msg |
Definition at line 49 of file parse_ppi.c.
References hdr_field::body, to_body::error, HDR_PPI_F, _str::len, LM_ERR, PARSE_ERROR, parse_headers(), parse_to(), hdr_field::parsed, pkg_free, pkg_malloc, sip_msg::ppi, and _str::s.
Referenced by parse_ppi_uri().
Parse P-Preferred-Identity header URI.
Definition at line 91 of file parse_ppi.c.
References get_ppi, sip_uri::host, _str::len, LM_ERR, NULL, OSER_EC_PARSER, OSER_EL_MEDIUM, parse_ppi_header(), parse_uri(), to_body::parsed_uri, sip_msg::ppi, _str::s, set_err_info(), set_err_reply(), to_body::uri, and sip_uri::user.
1.5.6