Functions

parse_pai.c File Reference

P-Asserted-Identity header parser. More...

#include "../../parser/parse_from.h"
#include "../../parser/parse_to.h"
#include <stdlib.h>
#include <string.h>
#include "../../dprint.h"
#include "../../parser/msg_parser.h"
#include "../../ut.h"
#include "../../mem/mem.h"
Include dependency graph for parse_pai.c:

Go to the source code of this file.

Functions


Detailed Description

Definition in file parse_pai.c.


Function Documentation

int parse_pai_header ( struct sip_msg msg  ) 

P-Asserted-Identity header field parser.

Currently only one name-addr / addr-spec is supported in the header and it must contain a sip or sips URI.

Parameters:
msg sip msg
Returns:
0 on success, -1 on failure.

Definition at line 44 of file parse_pai.c.

References hdr_field::body, _str::len, parse_to(), hdr_field::parsed, and _str::s.

Here is the call graph for this function: