Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
liblinphone
Commits
ace63877
Commit
ace63877
authored
Feb 09, 2018
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix workaround to prevent insertion of group chat room call sessions in call logs.
parent
ea11871d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
coreapi/misc.c
coreapi/misc.c
+9
-8
No files found.
coreapi/misc.c
View file @
ace63877
...
...
@@ -907,17 +907,18 @@ void linphone_core_report_call_log(LinphoneCore *lc, LinphoneCallLog *call_log){
// TODO: This is a workaround that has to be removed ASAP
// Do not add calls made to the conference factory in the history
char
*
to
=
linphone_address_as_string
(
call_log
->
to
);
const
char
*
conference_factory_uri
=
linphone_core_get_conference_factory_uri
(
lc
);
if
(
conference_factory_uri
&&
(
strcmp
(
conference_factory_uri
,
to
)
==
0
))
{
bctbx_free
(
to
);
return
;
if
(
conference_factory_uri
)
{
LinphoneAddress
*
conference_factory_addr
=
linphone_address_new
(
conference_factory_uri
);
if
(
linphone_address_weak_equal
(
call_log
->
to
,
conference_factory_addr
))
{
linphone_address_unref
(
conference_factory_addr
);
return
;
}
linphone_address_unref
(
conference_factory_addr
);
}
if
(
strstr
(
to
,
"chatroom-"
)
==
to
)
{
bctbx_free
(
to
);
const
char
*
username
=
linphone_address_get_username
(
call_log
->
to
)
;
if
(
strstr
(
username
,
"chatroom-"
)
==
username
)
return
;
}
bctbx_free
(
to
);
// End of workaround
#ifdef SQLITE_STORAGE_ENABLED
...
...
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