Simon Morlat
eaed5fe047
fix sqlite openings: don't convert to utf8
2016-06-03 10:38:06 +02:00
Ghislain MARY
fad94bc04c
Fix header includes for Android.
2016-06-01 12:32:57 +02:00
Simon Morlat
aba70a4afa
don't make our sqlite vfs the default for all the process, because it conflicts with other use of sqlite (in ios apis for example)
2016-05-31 11:34:33 +02:00
Simon Morlat
57561bb120
fix compilation error with no sqlite support
2016-05-20 13:55:00 +02:00
Simon Morlat
b79535afe9
fix automake build and simplify sqlite enablement options
2016-05-20 09:37:53 +02:00
Sandrine Avakian
6cfac0ff44
Using newly created functions bctbx_file_close_and_free, bctbx_file_create_and_open. in lpconfig.c.
...
Changing check on file descriptor return value : should be different from -1 if open was successful .
Using bctbx_file_open and bctbx_file_close in sqlite3bctbx_Open and sqlite3bctbx_Close.
Registers the VFS as default incall_log.c, friend.c and mesage_storage.c .
2016-05-17 11:11:49 +02:00
Sandrine Avakian
fea70fc4ce
Merge branch 'master' of git.linphone.org:linphone into bc_vfs
2016-05-12 10:38:07 +02:00
Sandrine Avakian
c400e2f563
First use of sqlite3 bctbx custom vfs.
2016-05-12 10:36:58 +02:00
Simon Morlat
fa00efddbb
fix memory leak in JNI getHistory()
2016-05-10 16:03:14 +02:00
Simon Morlat
60708a53ab
repair message storage
2016-01-06 17:40:36 +01:00
Gautier Pelloux-Prayer
218db02a1a
submodules: update ms2 to fix music pause on iOS
2016-01-06 15:12:09 +01:00
Simon Morlat
f922907fd8
repair jni compilation
2015-12-27 12:35:50 +01:00
Gautier Pelloux-Prayer
87fa413ec4
message_storage.c: do not rebuild peer address for each DB message since it is already available in chat room structure
2015-11-20 14:59:07 +01:00
Gautier Pelloux-Prayer
91352ffccd
message_storage.c: remove invalid assert in linphone_chat_room_delete_message and force recomputation of unread messages count after removal, since database is not synced anymore with chat messages in memory
2015-11-18 13:27:35 +01:00
Simon Morlat
ee92fdcf4c
fix sqlite database access mode for iOS, where default write modes don't allow writing in background mode.
2015-11-16 10:28:05 +01:00
Simon Morlat
e14852711b
fix crash in linphone_core_create_call_params(), try to workaround an sqlite problem on iOS
2015-11-12 12:23:21 +01:00
François Grisez
2cdedebd81
Fix compilation error
2015-10-02 17:41:18 +02:00
Ghislain MARY
5a629de3de
Tell sqlite3 to work only in memory because some platforms do not support working with temporary files.
2015-10-02 17:29:57 +02:00
Sylvain Berfini
cabf15f1f5
Store call logs in sql database + new method to get all call logs related to a linphone address
2015-09-08 02:45:32 +02:00
Simon Morlat
cf6995ef5c
clean chat room api.
...
fix multiple memory leaks, mainly in gtk UI
2015-09-04 14:57:25 +02:00
Simon Morlat
9f2b9df16a
Revert "chat: fix crash when receiving message status notification AFTER having deleted the chat room"
...
This reverts commit 08e923a41c .
This commit breaks compilation.
2015-09-03 21:29:44 +02:00
Gautier Pelloux-Prayer
08e923a41c
chat: fix crash when receiving message status notification AFTER having deleted the chat room
2015-09-03 17:07:52 +02:00
Gautier Pelloux-Prayer
434907917e
chat.c: properly clean filetransfer when it failed for io error and/or server issue
2015-09-02 14:33:40 +02:00
Gautier Pelloux-Prayer
bce114c25a
message_storage.c: fix previous commit, remove debug code
2015-09-02 09:36:31 +02:00
Gautier Pelloux-Prayer
a722c76515
message_storage.c: minor refactoring
2015-09-01 16:36:26 +02:00
Simon Morlat
7247525fb9
fix crash on windows due to incorrect usage of MultiByteToWideChar()
2015-08-24 10:00:19 +02:00
François Grisez
36eea822d2
Add a cache for unread messagaes count in LinphoneChatRoom
...
That fix a performance issue when typing a message. The sqlite database
was accessed each time a character was typed in order to mark all
preceeding messages as read. That was done even if all message was marked
as read.
This patch add cache for unread messages count. Then, the count is only carried out
at the first call of linphone_chat_room_get_unread_messages_count(). This function
is used in linphone_chat_room_mark_as_read() to prevent database from being accessed
if all messages are already marked as read.
2015-07-22 23:56:19 +02:00
Ghislain MARY
8722f8a990
Add Visual Studio project for Windows 10.
2015-07-03 16:56:14 +02:00
Sylvain Berfini
566df1413d
Fix compilation for bb10
2015-03-02 12:23:55 +01:00
Simon Morlat
0d4048dbdf
fix android compilation
2015-02-25 21:55:39 +01:00
François Grisez
cde2d55d84
Fix charset issue with sqlite3_open()
...
sqlite3_open() requires that the path is encoded into UTF-8
2015-02-25 17:00:39 +01:00
François Grisez
2e9036f365
Fix crach on windows: avoid creating message storage database when the SQLite file cannot be opened
2015-02-20 15:17:02 +01:00
Simon Morlat
13bacf87c9
fix compilation warning update ms2
2014-11-27 10:18:37 +01:00
Guillaume BIENKOWSKI
e87403f324
Use a debug message instead of message for timing measurements
2014-11-26 13:53:19 +01:00
Guillaume BIENKOWSKI
06de47db2e
Fix a special case in message history retrieval.
...
This function is not yet completely tested,
2014-11-26 13:53:19 +01:00
Guillaume BIENKOWSKI
8934000867
Fix message tester when no storage is used
2014-11-24 11:53:43 +01:00
Ghislain MARY
35189535a7
Convert LinphoneContent from a simple struct to a belle-sip object to ease generation of wrappers.
2014-11-18 16:42:16 +01:00
Gautier Pelloux-Prayer
e45b7bc3f0
Fix database time migration for Android: store time_t as 64bits in database
2014-11-12 15:10:26 +01:00
Gautier Pelloux-Prayer
0892bd026d
Fix method linphone_chat_room_get_history which returned one extra message + fix memory leaks in message storage tester
2014-11-05 12:10:15 +01:00
Simon Morlat
54e6f89dac
fix message state whose storage in db was broken
2014-10-17 11:25:28 +02:00
Simon Morlat
d90dc113b2
fix format specifiers
2014-10-15 13:57:34 +02:00
Sylvain Berfini
4be7d1c931
Fix message_storage for WP8
2014-10-15 12:31:56 +02:00
Sylvain Berfini
d268f4ab98
Fixed message storage for sent files + fixed update state sql request for sent files
2014-09-12 11:51:57 +02:00
Gautier Pelloux-Prayer
e67ce6d91b
Use strictness improved version in oRTP too
2014-09-11 17:13:03 +02:00
Gautier Pelloux-Prayer
717db9fd8d
Improved strict compilation flags
2014-09-11 15:46:05 +02:00
Sylvain Berfini
e9a376a014
LinphoneContent stored in database + few changes on Java API regarding file transfer
2014-09-11 12:14:35 +02:00
Gautier Pelloux-Prayer
c8bd7e1007
Fix android writable dir for tests
2014-08-20 09:31:55 +02:00
Gautier Pelloux-Prayer
c53f70e256
Fix erroneous documentation from conversation history new methods
2014-08-19 15:06:50 +02:00
Gautier Pelloux-Prayer
e745c956e7
Add method to retrieve size of a conversation history and a part of it
2014-08-19 11:31:40 +02:00
Simon Morlat
61d1f7b5de
allow fps change in linphone_core_update_call()
2014-08-13 19:25:33 +02:00