void ht_handle_expired_record(ht_t *ht, ht_cell_t *cell) { if(ht->evrt_expired<0) return; ht_expired_cell = cell; LM_DBG("running event_route[htable:expired:%.*s]\n", ht->name.len, ht->name.s); ht_expired_run_event_route(ht->evrt_expired); ht_expired_cell = NULL; }
void ht_handle_expired_record(ht_t *ht, ht_cell_t *cell) { ht_expired_cell = cell; char route_name[64] = "htable:expired:"; if (ht->name.len + strlen(route_name) > 64) { LM_ERR("ht_expired_record route name too long"); return; } strncat(route_name, ht->name.s, ht->name.len); ht_expired_run_event_route(route_name); ht_expired_cell = NULL; }