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


Go to the source code of this file.
Data Structures | |
| struct | supported_body |
Defines | |
| #define | F_SUPPORTED_100REL (1 << 1) |
| #define | F_SUPPORTED_PATH (1 << 0) |
| #define | F_SUPPORTED_TIMER (1 << 2) |
| #define | get_supported(p_msg) ((p_msg)->supported ? ((struct supported_body*)(p_msg)->supported->parsed)->supported_all : 0) |
| #define | SUPPORTED_100REL_LEN (sizeof(SUPPORTED_100REL_STR)-1) |
| #define | SUPPORTED_100REL_STR "100rel" |
| #define | SUPPORTED_PATH_LEN (sizeof(SUPPORTED_PATH_STR)-1) |
| #define | SUPPORTED_PATH_STR "path" |
| #define | SUPPORTED_TIMER_LEN (sizeof(SUPPORTED_TIMER_STR)-1) |
| #define | SUPPORTED_TIMER_STR "timer" |
Functions | |
| static void | free_supported (struct supported_body **sb) |
| int | parse_supported (struct sip_msg *msg) |
Definition in file parse_supported.h.
| #define F_SUPPORTED_100REL (1 << 1) |
| #define F_SUPPORTED_PATH (1 << 0) |
Definition at line 42 of file parse_supported.h.
Referenced by parse_supported_body(), and send_reply().
| #define F_SUPPORTED_TIMER (1 << 2) |
Definition at line 44 of file parse_supported.h.
Referenced by parse_msg_for_sst_info(), and parse_supported_body().
| #define get_supported | ( | p_msg | ) | ((p_msg)->supported ? ((struct supported_body*)(p_msg)->supported->parsed)->supported_all : 0) |
| #define SUPPORTED_100REL_LEN (sizeof(SUPPORTED_100REL_STR)-1) |
| #define SUPPORTED_100REL_STR "100rel" |
Definition at line 50 of file parse_supported.h.
| #define SUPPORTED_PATH_LEN (sizeof(SUPPORTED_PATH_STR)-1) |
Definition at line 47 of file parse_supported.h.
| #define SUPPORTED_PATH_STR "path" |
| #define SUPPORTED_TIMER_LEN (sizeof(SUPPORTED_TIMER_STR)-1) |
| #define SUPPORTED_TIMER_STR "timer" |
Definition at line 54 of file parse_supported.h.
| static void free_supported | ( | struct supported_body ** | sb | ) | [inline, static] |
Definition at line 76 of file parse_supported.h.
References pkg_free.
Referenced by clean_hdr_field().
| int parse_supported | ( | struct sip_msg * | msg | ) |
Parse all Supported headers.
Parse all Supported headers
Definition at line 106 of file parse_supported.c.
References hdr_field::body, HDR_EOH_F, LM_ERR, parse_headers(), parse_supported_body(), hdr_field::parsed, pkg_malloc, hdr_field::sibling, supported_body::supported, sip_msg::supported, and supported_body::supported_all.
Referenced by parse_msg_for_sst_info(), and send_reply().
1.5.6