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
9149278c
Commit
9149278c
authored
Dec 12, 2013
by
jehan
Browse files
relax tester delay to take into account a DNS packet loses
parent
4212cc43
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
10 deletions
+3
-10
coreapi/proxy.c
coreapi/proxy.c
+1
-8
tester/liblinphone_tester.c
tester/liblinphone_tester.c
+1
-1
tester/register_tester.c
tester/register_tester.c
+1
-1
No files found.
coreapi/proxy.c
View file @
9149278c
...
...
@@ -320,11 +320,8 @@ static void linphone_proxy_config_register(LinphoneProxyConfig *obj){
if
(
obj
->
reg_sendregister
){
LinphoneAddress
*
proxy
=
linphone_address_new
(
obj
->
reg_proxy
);
char
*
proxy_string
;
#ifndef USE_BELLESIP
char
*
contact
;
#else
LinphoneAddress
*
contact
;
#endif
proxy_string
=
linphone_address_as_string_uri_only
(
proxy
);
linphone_address_destroy
(
proxy
);
if
(
obj
->
op
)
...
...
@@ -332,11 +329,7 @@ static void linphone_proxy_config_register(LinphoneProxyConfig *obj){
obj
->
op
=
sal_op_new
(
obj
->
lc
->
sal
);
if
((
contact
=
guess_contact_for_register
(
obj
)))
{
sal_op_set_contact
(
obj
->
op
,
contact
);
#ifndef USE_BELLESIP
ms_free
(
contact
);
#else
linphone_address_destroy
(
contact
);
#endif
}
sal_op_set_user_pointer
(
obj
->
op
,
obj
);
if
(
sal_register
(
obj
->
op
,
proxy_string
,
obj
->
reg_identity
,
obj
->
expires
)
==
0
)
{
...
...
tester/liblinphone_tester.c
View file @
9149278c
...
...
@@ -137,7 +137,7 @@ bool_t wait_for_until(LinphoneCore* lc_1, LinphoneCore* lc_2,int* counter,int va
return
result
;
}
bool_t
wait_for
(
LinphoneCore
*
lc_1
,
LinphoneCore
*
lc_2
,
int
*
counter
,
int
value
)
{
return
wait_for_until
(
lc_1
,
lc_2
,
counter
,
value
,
2
000
);
return
wait_for_until
(
lc_1
,
lc_2
,
counter
,
value
,
3
000
);
}
bool_t
wait_for_list
(
MSList
*
lcs
,
int
*
counter
,
int
value
,
int
timeout_ms
)
{
int
retry
=
0
;
...
...
tester/register_tester.c
View file @
9149278c
...
...
@@ -481,7 +481,7 @@ static void io_recv_error_late_recovery(){
sal_set_recv_error
(
lc
->
sal
,
1
);
/*reset*/
sal_set_send_error
(
lc
->
sal
,
0
);
CU_ASSERT_TRUE
(
wait_for_list
(
lcs
=
ms_list_append
(
NULL
,
lc
),
&
counters
->
number_of_LinphoneRegistrationOk
,
register_ok
-
number_of_udp_proxy
+
register_ok
,
sal_get_refresher_retry_after
(
lc
->
sal
)
+
1
000
));
CU_ASSERT_TRUE
(
wait_for_list
(
lcs
=
ms_list_append
(
NULL
,
lc
),
&
counters
->
number_of_LinphoneRegistrationOk
,
register_ok
-
number_of_udp_proxy
+
register_ok
,
sal_get_refresher_retry_after
(
lc
->
sal
)
+
3
000
));
linphone_core_manager_destroy
(
mgr
);
}
...
...
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