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
d2843d52
Commit
d2843d52
authored
Feb 23, 2016
by
Svalorzen
Committed by
Gautier Pelloux-Prayer
Feb 23, 2016
Browse files
Fixes infinite loop since if call redirection fails the calls don't actually get terminated.
parent
4eced3bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
console/commands.c
console/commands.c
+6
-4
No files found.
console/commands.c
View file @
d2843d52
...
...
@@ -745,14 +745,16 @@ lpc_cmd_redirect(LinphoneCore *lc, char *args){
if
(
linphone_call_get_state
(
call
)
==
LinphoneCallIncomingReceived
){
if
(
linphone_core_redirect_call
(
lc
,
call
,
args
)
!=
0
)
{
linphonec_out
(
"Could not redirect call.
\n
"
);
elem
=
elem
->
next
;
}
else
{
didit
=
1
;
/*as the redirection closes the call, we need to re-check the call list that is invalidated.*/
elem
=
linphone_core_get_calls
(
lc
);
}
didit
=
1
;
/*as the redirection closes the call, we need to re-check the call list that is invalidated.*/
elem
=
linphone_core_get_calls
(
lc
);
}
else
elem
=
elem
->
next
;
}
if
(
didit
==
0
){
linphonec_out
(
"There is no pending incoming call to redirect."
);
linphonec_out
(
"There is no pending incoming call to redirect.
\n
"
);
}
return
1
;
}
...
...
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