#include "msg_parser.h"

Go to the source code of this file.
Defines | |
| #define | get_pai(p_msg) ((struct to_body*)(p_msg)->pai->parsed) |
Functions | |
| int | parse_pai_header (struct sip_msg *msg) |
Definition in file parse_pai.h.
| #define get_pai | ( | p_msg | ) | ((struct to_body*)(p_msg)->pai->parsed) |
casting macro for accessing P-Asserted-Identity body
Definition at line 36 of file parse_pai.h.
| int parse_pai_header | ( | struct sip_msg * | msg | ) |
P-Asserted-Identity header field parser
This method is used to parse P-Asserted-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 44 of file parse_pai.c.
References hdr_field::body, to_body::error, HDR_PAI_F, _str::len, LM_ERR, sip_msg::pai, PARSE_ERROR, parse_headers(), parse_to(), hdr_field::parsed, pkg_free, pkg_malloc, and _str::s.
1.5.6