From a9c557ae37fb3c7250a9015e360eba9d0046bde2 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Fri, 3 Nov 2017 16:59:00 +0100 Subject: [PATCH] Do not store calls made to conference factory inside database --- coreapi/misc.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/coreapi/misc.c b/coreapi/misc.c index 41f14fd92..e7e0a0d9e 100644 --- a/coreapi/misc.c +++ b/coreapi/misc.c @@ -940,6 +940,15 @@ void linphone_call_update_ice_from_remote_media_description(LinphoneCall *call, void linphone_core_report_call_log(LinphoneCore *lc, LinphoneCallLog *call_log){ bool_t call_logs_sqlite_db_found = FALSE; + // Do not add calls made to the conference factory in the history + char *to = linphone_address_as_string(call_log->to); + const char *conference_factory_uri = linphone_core_get_conference_factory_uri(lc); + if (strcmp(conference_factory_uri, to) == 0) { + ms_free(to); + return; + } + ms_free(to); + #ifdef SQLITE_STORAGE_ENABLED if (lc->logs_db) { call_logs_sqlite_db_found = TRUE;