parse_allow.h File Reference

#include "../mem/mem.h"
#include "msg_parser.h"

Include dependency graph for parse_allow.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  allow_body

Defines

#define get_allow_methods(p_msg)   (((struct allow_body*)(p_msg)->allow->parsed)->allow_all)

Functions

static void free_allow (struct allow_body **ab)
int parse_allow (struct sip_msg *msg)
 This method is used to parse all Allow HF body.


Define Documentation

#define get_allow_methods ( p_msg   )     (((struct allow_body*)(p_msg)->allow->parsed)->allow_all)

casting macro for accessing Allow body

Definition at line 37 of file parse_allow.h.

Referenced by check_message_support(), and pack_ci().


Function Documentation

static void free_allow ( struct allow_body **  ab  )  [inline, static]

Definition at line 54 of file parse_allow.h.

References pkg_free.

Referenced by clean_hdr_field().

int parse_allow ( struct sip_msg msg  ) 

This method is used to parse all Allow HF body.

Parse all Allow HFs

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

Definition at line 47 of file parse_allow.c.

References allow_body::allow, sip_msg::allow, allow, allow_body::allow_all, hdr_field::body, HDR_EOH_F, LM_ERR, parse_headers(), parse_methods(), hdr_field::parsed, pkg_free, pkg_malloc, and hdr_field::sibling.

Referenced by check_message_support(), and pack_ci().


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