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
e33a9a53
Commit
e33a9a53
authored
Oct 15, 2015
by
Simon Morlat
Browse files
prevent bad usage of linphone_core_accept_call_update() in case of late sdp offer/answer
parent
177e400d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
coreapi/linphonecore.c
coreapi/linphonecore.c
+5
-1
No files found.
coreapi/linphonecore.c
View file @
e33a9a53
...
@@ -3561,11 +3561,15 @@ int linphone_core_start_accept_call_update(LinphoneCore *lc, LinphoneCall *call,
...
@@ -3561,11 +3561,15 @@ int linphone_core_start_accept_call_update(LinphoneCore *lc, LinphoneCall *call,
* @return 0 if successful, -1 otherwise (actually when this function call is performed outside ot #LinphoneCallUpdatedByRemote state).
* @return 0 if successful, -1 otherwise (actually when this function call is performed outside ot #LinphoneCallUpdatedByRemote state).
**/
**/
int
linphone_core_accept_call_update
(
LinphoneCore
*
lc
,
LinphoneCall
*
call
,
const
LinphoneCallParams
*
params
){
int
linphone_core_accept_call_update
(
LinphoneCore
*
lc
,
LinphoneCall
*
call
,
const
LinphoneCallParams
*
params
){
if
(
call
->
state
!=
LinphoneCallUpdatedByRemote
){
if
(
call
->
state
!=
LinphoneCallUpdatedByRemote
){
ms_error
(
"linphone_core_accept_update(): invalid state %s to call this function."
,
ms_error
(
"linphone_core_accept_update(): invalid state %s to call this function."
,
linphone_call_state_to_string
(
call
->
state
));
linphone_call_state_to_string
(
call
->
state
));
return
-
1
;
return
-
1
;
}
}
if
(
call
->
expect_media_in_ack
){
ms_error
(
"linphone_core_accept_call_update() is not possible during a late offer incoming reINVITE (INVITE without SDP)"
);
return
-
1
;
}
return
_linphone_core_accept_call_update
(
lc
,
call
,
params
,
call
->
prevstate
,
linphone_call_state_to_string
(
call
->
prevstate
));
return
_linphone_core_accept_call_update
(
lc
,
call
,
params
,
call
->
prevstate
,
linphone_call_state_to_string
(
call
->
prevstate
));
}
}
...
...
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