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
a0de8d04
Commit
a0de8d04
authored
May 11, 2017
by
Benjamin REIS
Browse files
do not stop ringing when still incoming calls
parent
b75ff9c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
coreapi/callbacks.c
View file @
a0de8d04
...
...
@@ -901,6 +901,8 @@ static void call_failure(SalOp *op){
const
char
*
msg
=
ei
->
full_string
;
LinphoneCall
*
referer
;
LinphoneCall
*
call
=
(
LinphoneCall
*
)
sal_op_get_user_pointer
(
op
);
bool_t
stop_ringing
=
TRUE
;
bctbx_list_t
*
calls
=
lc
->
calls
;
if
(
call
==
NULL
){
ms_warning
(
"Call faillure reported on already terminated call."
);
...
...
@@ -1012,7 +1014,17 @@ static void call_failure(SalOp *op){
break
;
/*nothing to do*/
}
linphone_core_stop_ringing
(
lc
);
/* Stop ringing */
while
(
calls
)
{
if
(((
LinphoneCall
*
)
calls
->
data
)
->
state
==
LinphoneCallIncomingReceived
)
{
stop_ringing
=
FALSE
;
break
;
}
calls
=
calls
->
next
;
}
if
(
stop_ringing
)
{
linphone_core_stop_ringing
(
lc
);
}
linphone_call_stop_media_streams
(
call
);
#ifdef BUILD_UPNP
...
...
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