Data Structures | Enumerations | Functions

parse_sst.h File Reference

SST parser. More...

#include "../../parser/msg_parser.h"
#include "../../parser/hf.h"
Include dependency graph for parse_sst.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

Enumerations

Functions


Detailed Description

Definition in file parse_sst.h.


Function Documentation

enum parse_sst_result parse_min_se ( struct sip_msg msg,
unsigned *  min_se 
)
Note:
The header is not automatically parsed in parse_headers() so you'll have to call this function to get the information.
Parameters:
msg the sip message to examine
min_se the place to store the Min-SE value, if provided; note that result is also available in (unsigned)msg->min_se->parsed
Returns:
parse_sst_result

Referenced by parse_msg_for_sst_info(), and sst_check_min().

Here is the caller graph for this function:

enum parse_sst_result parse_session_expires ( struct sip_msg msg,
struct session_expires se 
)
Note:
The header is not automatically parsed in parse_headers()[1] so you'll have to call this function to get the information.

Because of time constraints, this function is coded assuming there is NO WHITESPACE in any of the body -- note that the augBNF for the Session-Expires body allows sep whitespace between tokens: delta-seconds SWS ";" SWS "refresher" SWS "=" SWS ( "uac" / "uas" )

Note[1]: it looks like only the frequently-used headers are automatically parsed in parse_headers() (indicated by a parse_<name> function of the form "char* parse_<name>(char *buf, char *end, foo*) and a struct foo with a member called "error").

Parameters:
msg the sip message to examine
se the place to store session-expires information into, if provided; note that result is also available in *((struct session_expires *)msg->session_expires->parsed)
Returns:
parse_sst_result

Definition at line 186 of file parse_sst.c.

References hdr_field::parsed.

Referenced by parse_msg_for_sst_info(), and sst_check_min().

Here is the caller graph for this function: