parse_ppi.c File Reference

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

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

Include dependency graph for parse_ppi.c:

Go to the source code of this file.

Functions

int parse_ppi_header (struct sip_msg *msg)
 This method is used to parse P-Preferred-Identity header (RFC 3325).
struct sip_uriparse_ppi_uri (struct sip_msg *msg)
 Parse P-Preferred-Identity header URI.


Detailed Description

P-Preferred-Identity header parser.

Definition in file parse_ppi.c.


Function Documentation

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.

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

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().

struct sip_uri* parse_ppi_uri ( struct sip_msg msg  )  [read]


Generated on Thu May 24 00:00:40 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6