Functions

parse_ppi.c File Reference

P-Preferred-Identity header parser. More...

#include "parse_ppi.h"
#include "../../parser/parse_to.h"
#include "../../parser/parse_uri.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_ppi.c:

Go to the source code of this file.

Functions


Detailed Description

Definition in file parse_ppi.c.


Function Documentation

int parse_ppi_header ( struct sip_msg msg  ) 

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 48 of file parse_ppi.c.

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

Referenced by parse_ppi_uri().

Here is the call graph for this function:

Here is the caller graph for this function: