Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblinphone
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
23
Merge Requests
23
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
liblinphone
Commits
12660bea
Commit
12660bea
authored
Mar 14, 2018
by
Benjamin REIS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not notify unknown device
parent
e620b432
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
local-conference-event-handler.cpp
src/conference/handlers/local-conference-event-handler.cpp
+4
-5
No files found.
src/conference/handlers/local-conference-event-handler.cpp
View file @
12660bea
...
...
@@ -404,15 +404,14 @@ void LocalConferenceEventHandler::subscribeReceived (LinphoneEvent *lev, bool on
const
LinphoneAddress
*
lContactAddr
=
linphone_event_get_remote_contact
(
lev
);
char
*
contactAddrStr
=
linphone_address_as_string
(
lContactAddr
);
Address
contactAddr
(
contactAddrStr
);
Identity
Address
contactAddr
(
contactAddrStr
);
bctbx_free
(
contactAddrStr
);
if
(
contactAddr
.
getUriParamValue
(
"gr"
).
empty
())
{
shared_ptr
<
ParticipantDevice
>
device
=
participant
->
getPrivate
()
->
findDevice
(
contactAddr
);
if
(
!
device
)
{
lError
()
<<
"received SUBSCRIBE for conference: "
<<
d
->
conf
->
getConferenceAddress
().
asString
()
<<
"
has no GRUU in it's contact address:"
<<
contactAddr
.
asString
()
<<
"
, no NOTIFY sent."
;
<<
"
device sending subscribe: "
<<
contactAddr
.
asString
()
<<
" is not known
, no NOTIFY sent."
;
return
;
}
IdentityAddress
gruu
(
contactAddr
);
shared_ptr
<
ParticipantDevice
>
device
=
participant
->
getPrivate
()
->
addDevice
(
gruu
);
if
(
linphone_event_get_subscription_state
(
lev
)
==
LinphoneSubscriptionActive
)
{
unsigned
int
lastNotify
=
static_cast
<
unsigned
int
>
(
Utils
::
stoi
(
linphone_event_get_custom_header
(
lev
,
"Last-Notify-Version"
)));
...
...
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