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
82967def
Commit
82967def
authored
Jan 12, 2021
by
johan
Browse files
Belle-sip http provider API update
parent
9de2ca5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
coreapi/linphonecore.c
coreapi/linphonecore.c
+4
-3
No files found.
coreapi/linphonecore.c
View file @
82967def
...
...
@@ -2858,11 +2858,12 @@ static void linphone_core_init(LinphoneCore * lc, LinphoneCoreCbs *cbs, LpConfig
* If this creates problem, we may need to implement parallel ipv6/ ipv4 http requests in belle-sip.
* ipv6 config value is read later in fonction sip_config_read*/
int
use_ipv6_for_sip
=
linphone_config_get_int
(
lc
->
config
,
"sip"
,
"use_ipv6"
,
TRUE
);
/* TLS transports is always enabled, TCP can be disabled using the https_only flag in the configuration */
uint8_t
transports
=
BELLE_SIP_HTTP_TRANSPORT_TLS
;
if
(
linphone_config_get_bool
(
lc
->
config
,
"sip"
,
"https_only"
,
FALSE
)
==
FALSE
)
{
lc
->
http_provider
=
belle_sip_stack_create_http_provider
(
reinterpret_cast
<
belle_sip_stack_t
*>
(
lc
->
sal
->
getStackImpl
()),
(
use_ipv6_for_sip
?
"::0"
:
"0.0.0.0"
));
}
else
{
lc
->
http_provider
=
belle_sip_stack_create_https_only_provider
(
reinterpret_cast
<
belle_sip_stack_t
*>
(
lc
->
sal
->
getStackImpl
()),
(
use_ipv6_for_sip
?
"::0"
:
"0.0.0.0"
));
transports
|=
BELLE_SIP_HTTP_TRANSPORT_TCP
;
}
lc
->
http_provider
=
belle_sip_stack_create_http_provider_with_transports
(
reinterpret_cast
<
belle_sip_stack_t
*>
(
lc
->
sal
->
getStackImpl
()),
(
use_ipv6_for_sip
?
"::0"
:
"0.0.0.0"
),
transports
);
lc
->
http_crypto_config
=
belle_tls_crypto_config_new
();
belle_http_provider_set_tls_crypto_config
(
lc
->
http_provider
,
lc
->
http_crypto_config
);
...
...
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