log call state creation/deletion

This commit is contained in:
Harald Welte 2022-10-16 19:06:24 +02:00
parent aaf7c0100f
commit 2a0c0df07c
1 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,7 @@ calltbl_create_callref(struct isdntap_line *line, uint32_t callref, bool net2use
if (!st)
return NULL;
LOGPLI(line, DITAP, LOGL_INFO, "Creating call state record for callref %u\n", callref);
st->call_ref = callref;
st->net2user = net2user;
st->create_time = time(NULL);
@ -126,6 +127,7 @@ calltbl_find_or_create_callref(struct isdntap_line *line, uint32_t callref, bool
static void calltbl_delete_callref(struct q931_call_state *cstate)
{
LOGP(DITAP, LOGL_INFO, "Deleting call state record for callref %u\n", cstate->call_ref);
hash_del(&cstate->node);
talloc_free(cstate);
}