diff --git a/daemon/call.c b/daemon/call.c index 94be70fd8..cf0479b49 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -4201,6 +4201,7 @@ static call_t *call_create(const str *callid) { c->tos = rtpe_config.default_tos; c->poller = rtpe_get_poller(); c->sdp_fragments = fragments_ht_new(); + c->redis_hosted_db = -1; if (rtpe_config.cpu_affinity) c->cpu_affinity = call_socket_cpu_affinity++ % rtpe_config.cpu_affinity; else diff --git a/include/call.h b/include/call.h index 1ebc4b10c..3aa024db9 100644 --- a/include/call.h +++ b/include/call.h @@ -760,7 +760,7 @@ struct call { sockaddr_t xmlrpc_callback; endpoint_t dtmf_log_dest; - unsigned int redis_hosted_db; + int redis_hosted_db; atomic64 last_redis_update; struct recording *recording;