Modules: SIP Session Timers module. More...
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../sl/sl_api.h"
#include "sst_handlers.h"

Go to the source code of this file.
Functions | |
| static MODULE_VERSION int | mod_init (void) |
Variables | |
| static cmd_export_t | cmds [] |
| struct dlg_binds | dialog_st |
| struct dlg_binds * | dlg_binds = &dialog_st |
| stat_var * | expired_sst = 0 |
| struct module_exports | exports |
| static param_export_t | mod_params [] |
| static stat_export_t | mod_stats [] |
| struct sl_binds | slb |
| int | sst_enable_stats = 1 |
| static int | sst_flag = -1 |
| unsigned int | sst_minSE = 90 |
| unsigned int | sst_reject = 1 |
| pv_spec_t | timeout_avp |
| static char * | timeout_spec = 0 |
Modules: SIP Session Timers module.
Definition in file sst.c.
| static int mod_init | ( | void | ) | [static] |
The initialization function, called when the module is loaded by the script. This function is called only once.
Bind to the dialog module and setup the callbacks. Also initialize the shared memory to store our interninal information in.
Definition at line 154 of file sst.c.
References dialog_st, DLGCB_CREATED, _str::len, LM_DBG, LM_ERR, load_dlg_api(), load_sl_api(), MAX_FLAG, NULL, pv_parse_spec(), PVT_AVP, dlg_binds::register_dlgcb, _str::s, s, slb, sst_dialog_created_CB(), sst_enable_stats, sst_flag, sst_handler_init(), sst_minSE, sst_reject, module_exports::stats, timeout_spec, and _pv_spec::type.
cmd_export_t cmds[] [static] |
Initial value:
{
{"sstCheckMin", (cmd_function)sst_check_min, 1, 0, 0, REQUEST_ROUTE | ONREPLY_ROUTE },
{0,0,0,0,0,0}
}
| stat_var* expired_sst = 0 |
| struct module_exports exports |
param_export_t mod_params[] [static] |
stat_export_t mod_stats[] [static] |
| int sst_enable_stats = 1 |
int sst_flag = -1 [static] |
The sst message flag value
Definition at line 92 of file sst.c.
Referenced by mod_init(), sst_dialog_created_CB(), and sst_handler_init().
| unsigned int sst_minSE = 90 |
The default or script parameter for the requested MIN-SE: value for this proxy. (in seconds) If the passed in value is 0, then this proxy will except any value from the UAC as its min-SE value. If the value is NOT set then the default will be asserted.
Definition at line 83 of file sst.c.
Referenced by mod_init().
| unsigned int sst_reject = 1 |
Should the PROXY (us) reject (with a 422 reply) and SE < sst_minSE requests is it can. Default is YES.
Definition at line 89 of file sst.c.
Referenced by mod_init(), sst_dialog_created_CB(), and sst_handler_init().
char* timeout_spec = 0 [static] |
1.5.6