#include "../mem/mem.h"
#include "keys.h"
#include "parse_supported.h"

Go to the source code of this file.
Defines | |
| #define | IS_DELIM(c) (*(c) == ' ' || *(c) == '\t' || *(c) == '\r' || *(c) == '\n' || *(c) == ',') |
| #define | LOWER_BYTE(b) ((b) | 0x20) |
| #define | LOWER_DWORD(d) ((d) | 0x20202020) |
| #define | READ(val) (*(val + 0) + (*(val + 1) << 8) + (*(val + 2) << 16) + (*(val + 3) << 24)) |
Functions | |
| int | parse_supported (struct sip_msg *msg) |
| static int | parse_supported_body (str *body, unsigned int *sup) |
Definition in file parse_supported.c.
| #define IS_DELIM | ( | c | ) | (*(c) == ' ' || *(c) == '\t' || *(c) == '\r' || *(c) == '\n' || *(c) == ',') |
| #define LOWER_BYTE | ( | b | ) | ((b) | 0x20) |
Definition at line 36 of file parse_supported.c.
| #define LOWER_DWORD | ( | d | ) | ((d) | 0x20202020) |
Definition at line 37 of file parse_supported.c.
Definition at line 38 of file parse_supported.c.
| int parse_supported | ( | struct sip_msg * | msg | ) |
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().
| static int parse_supported_body | ( | str * | body, | |
| unsigned int * | sup | |||
| ) | [inline, static] |
Parse Supported HF body.
Definition at line 45 of file parse_supported.c.
References _100r_, _path_, _time_, F_SUPPORTED_100REL, F_SUPPORTED_PATH, F_SUPPORTED_TIMER, IS_DELIM, _str::len, len, LOWER_BYTE, LOWER_DWORD, READ, _str::s, SUPPORTED_100REL_LEN, and SUPPORTED_TIMER_LEN.
Referenced by parse_supported().
1.5.6