Commit graph

77 commits

Author SHA1 Message Date
Simon Morlat
e4d97e2a51 add release methods for friends and friend list, so that the core can properly shutdown without leaving references. 2016-01-05 21:15:02 +01:00
Simon Morlat
7b5da68fd8 fix presence tests 2015-12-22 14:55:56 +01:00
Ghislain MARY
820d26bacf Fix presence list tests. 2015-12-18 15:00:04 +01:00
Ghislain MARY
7885a5c80a Prevent sending multiple identical subscribes for presence list + send new subscribe when adding a friend. 2015-11-30 14:15:33 +01:00
Ghislain MARY
e6f44d8c1f Add the "store_friends" parameter in the "misc" section of config to allow not storing friends in the linphonerc. 2015-11-30 11:50:49 +01:00
Ghislain MARY
fccaa5e36e Handle versioning of presence list notifications + store information that we have received presence information for a friend. 2015-11-30 11:39:21 +01:00
Ghislain MARY
97f28a65ca Basic parsing of presence list notify. 2015-11-27 11:44:16 +01:00
Ghislain MARY
96d249c674 Generate resource-lists SUBSCRIBE for presence. 2015-11-23 17:41:09 +01:00
Ghislain MARY
89aa523d71 Use LinphoneFriendList object for the list of friends of a LinphoneCore. 2015-11-23 17:41:09 +01:00
Simon Morlat
3497afd30e fix test not unregistering, causing later problems on other tests 2015-10-20 12:45:21 +02:00
Simon Morlat
02ef798b58 fix crash with presence. A subscribe refresh must be notified to the upper layer. 2015-10-20 11:42:14 +02:00
Simon Morlat
59b7e88d7d add new test 2015-10-19 12:55:08 +02:00
Simon Morlat
73cfad320d fix memory leaks around presence 2015-10-16 22:59:28 +02:00
Simon Morlat
a9d34e7b0f fix memory leaks and unreleased dialogs in presence management 2015-10-16 21:16:38 +02:00
Simon Morlat
177e400ddd fix memory leaks and flaws around presence 2015-10-15 16:46:48 +02:00
Simon Morlat
b9c32d33a5 send presence to multiple instances of a same user that subscribed to us. Fixes memory leak. 2015-09-04 22:23:00 +02:00
Margaux Clerc
a2561ca88c Add ref counting on LinphoneFriend 2015-04-14 17:04:48 +02:00
Gautier Pelloux-Prayer
0e273ee722 Cleanup translations 2014-11-28 11:02:00 +01:00
Jehan Monnier
251ba960c5 add new functions linphone_core_add_listener to enable multiple vtable to be registered 2014-09-16 15:00:12 +02:00
Simon Morlat
24a208100a * notify friend status to offline when network goes unreachable
* relax timeouts of tests again
* always install linphone_tunnel.h
2014-05-12 12:41:32 +02:00
Gautier Pelloux-Prayer
4386f18b21 replace tabs with spaces and remove trailing spaces 2014-04-22 17:22:51 +02:00
Simon Morlat
a0b7b1f3b0 rework implementation of SUBSCRIBEs delayed to successful registration.
In case of network errors, SUBSCRIBE could be sent before registration refresh, this should be fixed.
2014-03-11 17:25:07 +01:00
Simon Morlat
87d4f5f895 imlement java synchronization of LinphoneFriend with LinphoneCore 2014-01-22 16:49:15 +01:00
Simon Morlat
b47a179309 add linphone_core_find_friend() 2013-10-31 17:34:58 +01:00
Ghislain MARY
10734524fe Add factory functions to create common linphone objects. 2013-10-08 14:28:16 +02:00
Ghislain MARY
d10ab0a250 Getter functions need to start with "get". 2013-10-07 11:20:04 +02:00
Simon Morlat
a0d580ceb9 fix macos build issue
remove useless code
2013-10-02 14:58:19 +02:00
Ghislain MARY
20dfd43aac More coherent friend API. 2013-09-19 11:15:29 +02:00
Ghislain MARY
cb1b69f2eb Add linphone_friend_get_name(). 2013-09-16 09:25:31 +02:00
Simon Morlat
26a522902e fix crash in presence unsubscription 2013-09-13 18:38:27 +02:00
Simon Morlat
bbedbf7652 update ms2 2013-09-13 16:48:50 +02:00
Simon Morlat
16da9c1b3b send username in contacts of publish
send unSUBSCRIBE when friend subscription is toggled off.
2013-09-13 15:15:07 +02:00
Ghislain MARY
d9684b0c3b Fix wrong warning being output when a friend is offline. 2013-09-05 11:27:40 +02:00
Simon Morlat
d85aeddbd1 logs cleanup 2013-07-31 23:58:53 +02:00
Jehan Monnier
ab6027703b make sure lf->initial_subscribes_sent reset when subscription is
invalidated
2013-07-24 22:54:10 +02:00
Jehan Monnier
9702eeb281 wait until linphone friend proxy config is registered before sending
first subscribe
2013-07-23 20:35:59 +02:00
Simon Morlat
0b2d04d624 many improvements
* re-send SUBSCRIBEs after network gets reachable again
* allow to set the default SUBSCRIBE expires using [sip] "subscribe_expires" property
* re-send initial SUBSCRIBE if remote peer lost the dialog context
2013-07-05 23:05:20 +02:00
Ghislain MARY
15952e46fb Use unref instead of explicit delete for presence objects. 2013-06-25 10:36:22 +02:00
Ghislain MARY
ee35e8e413 Remove linphone_friend_set_presence_model() and make linphone_friend_get_presence_model() return a const pointer because the user should not be able to change his friends' presence. 2013-06-25 09:58:20 +02:00
Ghislain MARY
14373bcb04 Prevent crash when adding a friend without entering a SIP URI. 2013-06-24 12:50:54 +02:00
Simon Morlat
866af779ab handle out of dialogs incoming NOTIFY.
Use in [sip]:
allow_out_of_subscribe_presence=1

to allow them for presence (unsecure)
2013-06-24 12:16:35 +02:00
Ghislain MARY
1b7f68b439 Change presence API a little bit to ease wrapping for other programming languages. 2013-06-21 17:06:08 +02:00
Ghislain MARY
a4340fc442 Update documentation about presence. 2013-06-19 17:22:26 +02:00
Ghislain MARY
8c9c96218a Use presence model to notify presence.
Use libxml2 to generate XML content.
2013-06-19 17:22:26 +02:00
Ghislain MARY
220c471369 Use xml parser to get presence status. 2013-06-19 17:22:26 +02:00
Simon Morlat
e5f1ae5773 add patch for vacation status 2013-06-12 22:19:26 +02:00
Simon Morlat
36e445f97f generic subscribe notify api in progress 2013-06-06 11:01:54 +02:00
Simon Morlat
bb0f07f6a0 add info api
refactor selection of proxy, identity, configurations of op
fix bug when automatically restarting a call after a 415 due to srtp
2013-05-16 16:30:38 +02:00
Simon Morlat
641ba75313 refine transport selection algorithm and set proper routes for all kind of operations: INVITE, MESSAGE, SUBSCRIBE. 2013-03-28 21:57:50 +01:00
Simon Morlat
3cd2dac98f refactoring and memory leak bugfixing. 2013-03-20 17:15:17 +01:00