log call state creation/deletion
This commit is contained in:
parent
aaf7c0100f
commit
2a0c0df07c
|
@ -107,6 +107,7 @@ calltbl_create_callref(struct isdntap_line *line, uint32_t callref, bool net2use
|
||||||
if (!st)
|
if (!st)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
LOGPLI(line, DITAP, LOGL_INFO, "Creating call state record for callref %u\n", callref);
|
||||||
st->call_ref = callref;
|
st->call_ref = callref;
|
||||||
st->net2user = net2user;
|
st->net2user = net2user;
|
||||||
st->create_time = time(NULL);
|
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)
|
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);
|
hash_del(&cstate->node);
|
||||||
talloc_free(cstate);
|
talloc_free(cstate);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue