Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
ec180352
Commit
ec180352
authored
Oct 13, 2017
by
Benjamin REIS
Browse files
add custom header telling last received notify to conf event subscribe
parent
706cdd8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/conference/participant-device.cpp
src/conference/participant-device.cpp
+1
-1
src/conference/remote-conference-event-handler.cpp
src/conference/remote-conference-event-handler.cpp
+2
-1
No files found.
src/conference/participant-device.cpp
View file @
ec180352
...
...
@@ -33,4 +33,4 @@ bool ParticipantDevice::operator== (const ParticipantDevice &device) const {
return
(
mGruu
==
device
.
getGruu
());
}
LINPHONE_END_NAMESPACE
\ No newline at end of file
LINPHONE_END_NAMESPACE
src/conference/remote-conference-event-handler.cpp
View file @
ec180352
...
...
@@ -20,6 +20,7 @@
#include "private.h"
#include "logger/logger.h"
#include "remote-conference-event-handler-p.h"
#include "linphone/utils/utils.h"
#include "xml/conference-info.h"
// =============================================================================
...
...
@@ -49,10 +50,10 @@ RemoteConferenceEventHandler::~RemoteConferenceEventHandler () {
void
RemoteConferenceEventHandler
::
subscribe
(
const
Address
&
addr
)
{
L_D
();
// TODO : add last notify
d
->
confAddress
=
addr
;
LinphoneAddress
*
lAddr
=
linphone_address_new
(
d
->
confAddress
.
asString
().
c_str
());
d
->
lev
=
linphone_core_create_subscribe
(
d
->
core
,
lAddr
,
"conference"
,
600
);
linphone_event_add_custom_header
(
d
->
lev
,
"Last-Notify-Version"
,
Utils
::
toString
(
d
->
lastNotify
).
c_str
());
linphone_address_unref
(
lAddr
);
linphone_event_set_internal
(
d
->
lev
,
TRUE
);
linphone_event_set_user_data
(
d
->
lev
,
this
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment