sst.c File Reference

SST :: Core

Modules: SIP Session Timers module. More...

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../sl/sl_api.h"
#include "sst_handlers.h"

Include dependency graph for sst.c:

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_bindsdlg_binds = &dialog_st
stat_varexpired_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


Detailed Description

SST :: Core

Modules: SIP Session Timers module.

Definition in file sst.c.


Function Documentation

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.

Returns:
0 to continue to load the Kamailio, -1 to stop the loading and abort Kamailio.

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.


Variable Documentation

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}
}

Definition at line 104 of file sst.c.

Definition at line 98 of file sst.c.

The binding to the dialog module functions. Most importantly the register_dlgcb function.

Definition at line 99 of file sst.c.

Definition at line 66 of file sst.c.

Definition at line 129 of file sst.c.

Definition at line 112 of file sst.c.

Initial value:

 {
   {"expired_sst", 0,  &expired_sst},
   {0,0,0}
}

Definition at line 124 of file sst.c.

struct sl_binds slb

SL binds

Definition at line 60 of file sst.c.

Definition at line 65 of file sst.c.

Referenced by mod_init().

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().

The name of the AVP the dialog module will use to hold the timeout value so we can set the AVP in the dialog callbacks so the dialog code will set the dialog lifetime when it returns from the INVITE and IN_ROUTE callbacks.

Definition at line 74 of file sst.c.

char* timeout_spec = 0 [static]

Place holder for the passed in name

Definition at line 75 of file sst.c.


Generated on Thu May 24 12:00:43 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6