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
73a37d42
Commit
73a37d42
authored
Feb 18, 2016
by
Simon Morlat
Browse files
allow explicit pause/resume to "repair" a broken call
parent
4bef511e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
coreapi/linphonecall.c
coreapi/linphonecall.c
+2
-1
coreapi/linphonecore.c
coreapi/linphonecore.c
+2
-0
oRTP
oRTP
+1
-1
No files found.
coreapi/linphonecall.c
View file @
73a37d42
...
...
@@ -4895,7 +4895,8 @@ void linphone_call_repair_if_broken(LinphoneCall *call){
linphone_call_params_unref
(
params
);
break
;
default:
ms_error
(
"linphone_call_resume_if_broken(): don't know what to do in state [%s]"
,
linphone_call_state_to_string
(
call
->
state
));
ms_warning
(
"linphone_call_resume_if_broken(): don't know what to do in state [%s]"
,
linphone_call_state_to_string
(
call
->
state
));
call
->
broken
=
FALSE
;
break
;
}
}
...
...
coreapi/linphonecore.c
View file @
73a37d42
...
...
@@ -4022,6 +4022,7 @@ int _linphone_core_pause_call(LinphoneCore *lc, LinphoneCall *call){
ms_error
(
"No reason to pause this call, it is already paused or inactive."
);
return
-
1
;
}
call
->
broken
=
FALSE
;
linphone_call_set_state
(
call
,
LinphoneCallPausing
,
"Pausing call"
);
linphone_call_make_local_media_description
(
call
);
#ifdef BUILD_UPNP
...
...
@@ -4098,6 +4099,7 @@ int linphone_core_resume_call(LinphoneCore *lc, LinphoneCall *call){
}
call
->
was_automatically_paused
=
FALSE
;
call
->
broken
=
FALSE
;
/* Stop playing music immediately. If remote side is a conference it
prevents the participants to hear it while the 200OK comes back.*/
...
...
oRTP
@
4214b357
Subproject commit 4
5ae584ce2493860056a74ae0f31417a5194be8c
Subproject commit 4
214b357a598156bf750e045261a910f5185b46d
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