MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / insert_dlg_timer

Function insert_dlg_timer

modules/dialog/dlg_timer.c:285–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285int insert_dlg_timer(struct dlg_tl *tl, int interval)
286{
287 lock_get( d_timer->lock);
288
289 if (tl->next!=0 || tl->prev!=0) {
290 lock_release( d_timer->lock);
291 LM_CRIT("Trying to insert a bogus dlg tl=%p tl->next=%p tl->prev=%p\n",
292 tl, tl->next, tl->prev);
293 return -1;
294 }
295 tl->timeout = get_ticks()+interval;
296
297 insert_gen_timer_unsafe( d_timer, tl );
298
299 lock_release( d_timer->lock);
300
301 return 0;
302}
303
304
305int insert_attempt_dlg_del_timer(struct dlg_tl *tl, int interval)

Callers 5

load_dialog_info_from_dbFunction · 0.85
sync_dlg_db_memFunction · 0.85
dlg_onreplyFunction · 0.85
dlg_ontimeoutFunction · 0.85
dlg_replicated_createFunction · 0.85

Calls 4

lock_getFunction · 0.85
lock_releaseFunction · 0.85
get_ticksFunction · 0.85
insert_gen_timer_unsafeFunction · 0.85

Tested by

no test coverage detected