Timer related functions for the dialog moduleModule: dialog :: Kamailio dialog module. More...
#include "../../mem/shm_mem.h"#include "../../timer.h"#include "dlg_timer.h"
Go to the source code of this file.
Definition in file dlg_timer.c.
| void dlg_timer_routine | ( | unsigned int | ticks, | |
| void * | attr | |||
| ) |
| ticks | time for expiration checks | |
| attr | unused |
Definition at line 272 of file dlg_timer.c.
References get_expired_dlgs(), and timer_hdl.

| static struct dlg_tl* get_expired_dlgs | ( | unsigned int | time | ) | [static, read] |
| time | time for expiration check |
Definition at line 223 of file dlg_timer.c.
References dlg_timer::first, dlg_timer::lock, and dlg_tl::timeout.
Referenced by dlg_timer_routine().

| int init_dlg_timer | ( | dlg_timer_handler | hdl | ) |
The global timer handler will be set on success.
| hdl | dialog timer handler |
Definition at line 51 of file dlg_timer.c.
References dlg_timer::first, dlg_timer::lock, and timer_hdl.
| static void insert_dialog_timer_unsafe | ( | struct dlg_tl * | tl | ) | [inline, static] |
| tl | dialog timer list |
Definition at line 105 of file dlg_timer.c.
References dlg_timer::first, and dlg_tl::timeout.
Referenced by insert_dlg_timer(), and update_dlg_timer().

| int insert_dlg_timer | ( | struct dlg_tl * | tl, | |
| int | interval | |||
| ) |
| tl | dialog timer list | |
| interval | timeout value in seconds |
Definition at line 129 of file dlg_timer.c.
References insert_dialog_timer_unsafe(), dlg_timer::lock, and dlg_tl::timeout.
Referenced by dlg_onreply().


| int remove_dialog_timer | ( | struct dlg_tl * | tl | ) |
| tl | dialog timer that should be removed |
Definition at line 166 of file dlg_timer.c.
References dlg_timer::lock, remove_dialog_timer_unsafe(), and dlg_tl::timeout.
Referenced by destroy_dlg(), and dlg_onroute().


| static void remove_dialog_timer_unsafe | ( | struct dlg_tl * | tl | ) | [inline, static] |
| tl | dialog timer list |
Definition at line 153 of file dlg_timer.c.
Referenced by remove_dialog_timer(), and update_dlg_timer().

| int update_dlg_timer | ( | struct dlg_tl * | tl, | |
| int | timeout | |||
| ) |
| tl | dialog timer | |
| timeout | new timeout value in seconds |
Definition at line 199 of file dlg_timer.c.
References insert_dialog_timer_unsafe(), dlg_timer::lock, remove_dialog_timer_unsafe(), and dlg_tl::timeout.
Referenced by dlg_onroute().


1.7.1