diff --git a/coreapi/call_log.c b/coreapi/call_log.c index 1e8a3786c..9bbc4c753 100644 --- a/coreapi/call_log.c +++ b/coreapi/call_log.c @@ -376,7 +376,8 @@ void linphone_core_call_log_storage_init(LinphoneCore *lc) { linphone_core_call_log_storage_close(lc); - ret=_linphone_sqlite3_open(lc->logs_db_file, &db); + //ret=_linphone_sqlite3_open(lc->logs_db_file, &db); + ret = sqlite3_open(lc->logs_db_file, &db); if(ret != SQLITE_OK) { errmsg = sqlite3_errmsg(db); ms_error("Error in the opening: %s.\n", errmsg); diff --git a/coreapi/friend.c b/coreapi/friend.c index 2251b370c..f69314375 100644 --- a/coreapi/friend.c +++ b/coreapi/friend.c @@ -1141,7 +1141,8 @@ void linphone_core_friends_storage_init(LinphoneCore *lc) { linphone_core_friends_storage_close(lc); - ret = _linphone_sqlite3_open(lc->friends_db_file, &db); + //ret = _linphone_sqlite3_open(lc->friends_db_file, &db); + ret = sqlite3_open(lc->friends_db_file, &db); if (ret != SQLITE_OK) { errmsg = sqlite3_errmsg(db); ms_error("Error in the opening: %s.\n", errmsg); diff --git a/coreapi/message_storage.c b/coreapi/message_storage.c index 8af587b7b..dc13d8f27 100644 --- a/coreapi/message_storage.c +++ b/coreapi/message_storage.c @@ -695,7 +695,8 @@ void linphone_core_message_storage_init(LinphoneCore *lc){ linphone_core_message_storage_close(lc); - ret=_linphone_sqlite3_open(lc->chat_db_file,&db); + //ret=_linphone_sqlite3_open(lc->chat_db_file,&db); + ret = sqlite3_open(lc->chat_db_file,&db); if(ret != SQLITE_OK) { errmsg=sqlite3_errmsg(db); ms_error("Error in the opening: %s.\n", errmsg);