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
16c47f7b
Commit
16c47f7b
authored
Jun 04, 2014
by
Simon Morlat
Browse files
fix linphone_core_update_call()
parent
22f6228c
Changes
2
Hide whitespace changes
Inline
Side-by-side
coreapi/linphonecore.c
View file @
16c47f7b
...
...
@@ -3148,7 +3148,13 @@ int linphone_core_update_call(LinphoneCore *lc, LinphoneCall *call, const Linpho
bool_t
has_video
=
FALSE
;
#endif
if
(
call
->
state
!=
LinphoneCallStreamsRunning
){
switch
(
call
->
state
){
case
LinphoneCallIncomingEarlyMedia
:
case
LinphoneCallIncomingReceived
:
case
LinphoneCallStreamsRunning
:
/*these states are allowed for linphone_core_update_call()*/
break
;
default:
ms_error
(
"linphone_core_update_call() is not allowed in [%s] state"
,
linphone_call_state_to_string
(
call
->
state
));
return
-
1
;
}
...
...
tester/register_tester.c
View file @
16c47f7b
...
...
@@ -681,7 +681,7 @@ static void io_recv_error_late_recovery(){
CU_ASSERT_TRUE
(
wait_for
(
lc
,
NULL
,
&
counters
->
number_of_LinphoneRegistrationProgress
,(
register_ok
-
number_of_udp_proxy
)
+
register_ok
/*because 1 udp*/
));
CU_ASSERT_EQUAL
(
counters
->
number_of_LinphoneRegistrationFailed
,
0
)
CU_ASSERT_TRUE
(
wait_for_list
(
lcs
=
ms_list_append
(
NULL
,
lc
),
&
counters
->
number_of_LinphoneRegistrationFailed
,(
register_ok
-
number_of_udp_proxy
),
sal_get_refresher_retry_after
(
lc
->
sal
)
+
1
000
));
CU_ASSERT_TRUE
(
wait_for_list
(
lcs
=
ms_list_append
(
NULL
,
lc
),
&
counters
->
number_of_LinphoneRegistrationFailed
,(
register_ok
-
number_of_udp_proxy
),
sal_get_refresher_retry_after
(
lc
->
sal
)
+
3
000
));
sal_set_recv_error
(
lc
->
sal
,
1
);
/*reset*/
sal_set_send_error
(
lc
->
sal
,
0
);
...
...
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