Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00033 #ifndef PARSE_SST_H
00034 #define PARSE_SST_H 1
00035
00036
00037 #include "../../parser/msg_parser.h"
00038 #include "../../parser/hf.h"
00039
00040
00044 enum sst_refresher {
00045 sst_refresher_unspecified,
00046 sst_refresher_uac,
00047 sst_refresher_uas,
00048 };
00049
00050
00055 struct session_expires {
00056 hf_parsed_free_f hfree;
00057 unsigned interval;
00058 enum sst_refresher refresher;
00059 };
00060
00061
00062 enum parse_sst_result {
00063 parse_sst_success,
00064 parse_sst_header_not_found,
00065 parse_sst_no_value,
00066 #if NOT_IMPLEMENTED_YET
00067 parse_sst_duplicate,
00068 #endif
00069 parse_sst_out_of_mem,
00070 parse_sst_parse_error,
00071 };
00072
00073
00077 struct session_expires *
00078 malloc_session_expires( void );
00079
00080
00084 void
00085 free_session_expires( struct session_expires * );
00086
00087
00110 enum parse_sst_result
00111 parse_session_expires( struct sip_msg *msg, struct session_expires *se );
00112
00113
00125 enum parse_sst_result
00126 parse_min_se( struct sip_msg *msg, unsigned *min_se );
00127
00128
00129 #endif