Commit graph

243 commits

Author SHA1 Message Date
Simon Morlat
95098f055a Make LinphoneErrorInfo a belle-sip object. Add new accessors, and make it able to take Reason headers in incoming requests (feature to be tested) 2017-03-22 14:45:24 +01:00
Ghislain MARY
5d1a3ebfcd Prevent message state from going to early states if it has reached the delivered to user or displayed state. 2017-03-14 10:21:52 +01:00
Benjamin Reis
535ae9ccb0 only deliver imdn and is_composing if imdn_delivery=1 in rc 2017-03-10 16:53:31 +01:00
Ghislain MARY
467ec300e6 Fix API by adding missing const keywords. 2017-03-01 16:48:41 +01:00
Benjamin Reis
b18702cf9e to_be_stored_api && do not filter SIP message notified to app 2017-02-28 17:00:29 +01:00
Ghislain MARY
29b27b752c Fix compilation issue. 2017-02-21 10:56:58 +01:00
Ghislain MARY
5193bb34e1 Add API to resend a chat message that has not been delivered. 2017-02-21 10:52:17 +01:00
Benjamin Reis
615f9d4e23 Send 200Ok to server if message we can't decrypt to avoid useless retransmission + adaptation of tests to this behavior 2017-02-20 11:19:47 +01:00
Benjamin Reis
8c1f7104f0 Fix linphone_chat_message_is_read in case im_notif_policy is changed 2017-02-14 10:36:52 +01:00
Ghislain MARY
b20343c440 Fix linphone_chat_message_is_read() according to IM notif policy. 2017-02-14 10:14:52 +01:00
Benjamin Reis
7276f565f2 tempoarily change linphone_chat_message_is_read 2017-02-13 13:28:38 +01:00
Ghislain MARY
cd4870d5ad Some refactoring to have a more object-oriented API. 2017-02-07 15:32:42 +01:00
Simon Morlat
1121e07313 stop pending file transfers when entering linphone_core_destroy(). 2017-02-06 11:44:49 +01:00
Ghislain MARY
50f4e52966 Store chat message in database before file upload so that if the file upload fails we can try sending the chat message an other time. 2017-02-03 15:29:40 +01:00
Simon Morlat
a8e4660ef3 fix memory leaks 2017-02-01 16:18:09 +01:00
Benjamin Reis
b669640847 Add message_received_unable_decrypt callback 2017-02-01 15:36:01 +01:00
Ghislain MARY
d398c2c619 Fix build. 2017-02-01 13:38:16 +01:00
Ghislain MARY
e389e34c7e Fix build of C++ wrapper on Windows. 2017-02-01 12:17:19 +01:00
Benjamin Reis
31d5d90ca9 add is_secured API to LinphoneChatMessage 2017-02-01 12:10:59 +01:00
Ghislain MARY
b297a4cb1d Rework chat handling.
- Add content type information in LIME encrypted message
 - Single entry point for all types of chat messages that are first decrypted if necessary and then handled according to their content type
 - Add possibility to send chat messages with a content type that is not 'text/plain'
 - Encrypt IMDN
2017-01-31 12:25:12 +01:00
Ghislain MARY
c446f1f424 Do not send IM notification is the chat message does not have a message id. 2017-01-25 11:39:06 +01:00
Ghislain MARY
ee077ae5ad Fix bug where IMDN messages gets encryption by LIME and the other party then treat the decrypted message as plain text. 2017-01-23 17:59:32 +01:00
Simon Morlat
656ff43b13 fix most common warnings 2017-01-14 14:13:26 +01:00
François Grisez
6160b6dbe1 Merge branch 'master' of git.linphone.org:linphone 2017-01-13 14:43:54 +01:00
François Grisez
3e037f26a0 Add a header file declaring functions exclusive for automatic wrapper generators 2017-01-13 14:08:46 +01:00
François Grisez
85b5ca097a Reworking of Liblinphone API
* Introduction of LinphoneFactory singleton class to create
  core-independent object like LinphoneAddress or LinphoneVcard.
* Make several C structures inherite from belle_sip_object_t class:
	* LinphoneCore
	* LinphoneVcard
	* LinphoneAuthInfo
* Creation of the LinphoneCoreCbs class that enable to store the
  callbacks used by LinphoneCore.
2017-01-12 17:47:01 +01:00
Sylvain Berfini
7793ff2cce Set from while sending chat message before encryption step, so if it fails information is available 2017-01-12 17:04:18 +01:00
Ghislain MARY
9fa30c5c20 Handle error cases in IMDN notifications. 2017-01-09 16:55:16 +01:00
Sylvain Berfini
4a04f3ba5a Do not increase unread message counter when sending one... 2017-01-04 17:31:22 +01:00
Ghislain MARY
e34327f58f Handle IM notification policy. 2017-01-03 14:56:56 +01:00
Ghislain MARY
f9ae431782 The (is_)read field of a LinphoneChatMessage is now deprecated, the LinphoneChatMessageStateDisplayed state is used instead. 2017-01-03 14:56:17 +01:00
Ghislain MARY
7889b0610b Store weak references of chat messages in the chat room to be able to returned the same LinphoneChatMessage object to the application. 2017-01-03 14:56:17 +01:00
Ghislain MARY
410f5b9e1c Revert message callbacks moved to LinphoneChatRoom instead of LinphoneChatMessage. 2017-01-03 14:56:17 +01:00
Ghislain MARY
9867c2fee7 Send and receive imdn. 2017-01-03 14:56:17 +01:00
Ghislain MARY
563bb427b0 Fix IM encryption engine for automatic wrapper generation. 2016-12-19 11:56:37 +01:00
Sylvain Berfini
25a6524d14 Fix chat message stored encrypted in database making it displayed as xml in mobile apps 2016-12-16 11:08:46 +01:00
Sylvain Berfini
5eb5ea3473 Fixed RTT character not being freed correctly + RTT test with SRTP failing if SRTP not available 2016-12-15 15:26:09 +01:00
Sylvain Berfini
e0fdfbb13b Added isComposing content-type to fake LinphoneChatMessage created for IM Encryption Engine incoming callback 2016-12-08 15:48:50 +01:00
Sylvain Berfini
a1d5ed8ca9 Allow IM Encryption Engine to return a custom code upon reception of a composing message 2016-12-06 10:30:21 +01:00
Sylvain Berfini
85d8e09d59 Call IM Encryption Engine outoing & incoming callbacks also for composing messages, but do nothing with lime + test 2016-12-05 12:07:11 +01:00
Sylvain Berfini
9a26b72164 Merge remote-tracking branch 'private/dev_im_encryption_engine' 2016-12-01 11:12:10 +01:00
Ghislain MARY
33b72ce6b5 Move public header files in the include/linphone directory. 2016-11-15 14:41:18 +01:00
Sylvain Berfini
d3333be071 More tests for lime file transfer + few improvements 2016-11-14 16:49:22 +01:00
Sylvain Berfini
b45e6dcc8d Added remove custom header method for chat message + test 2016-11-14 11:39:10 +01:00
Sylvain Berfini
395c81f69a Added encryption callbacks for file upload in im encryption engine 2016-11-10 15:44:32 +01:00
Sylvain Berfini
3214b4371a Reworked im encryption engine to be at linphone level instead of sal level 2016-11-10 14:33:04 +01:00
Gautier Pelloux-Prayer
dce962bf58 fix leaks 2016-07-19 12:20:24 +02:00
Sylvain Berfini
554635c53b Fix crash when downloading chat message encrypted with lime using file body handler 2016-07-15 17:03:16 +02:00
Ghislain MARY
3c0a4e15c3 Do not use deprecated ms_list_remove() function. 2016-06-27 09:30:16 +02:00
Jehan Monnier
144743535d Merge remote-tracking branch 'origin/3.10.x' 2016-06-23 14:15:38 +02:00