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
82e2e647
Commit
82e2e647
authored
Apr 18, 2016
by
Gautier Pelloux-Prayer
Browse files
proxy.c: store publish_expires in linphonerc too
parent
1bf41396
Changes
1
Hide whitespace changes
Inline
Side-by-side
coreapi/proxy.c
View file @
82e2e647
...
...
@@ -123,7 +123,7 @@ static void linphone_proxy_config_init(LinphoneCore* lc, LinphoneProxyConfig *cf
cfg
->
contact_uri_params
=
contact_uri_params
?
ms_strdup
(
contact_uri_params
)
:
NULL
;
cfg
->
avpf_mode
=
lc
?
lp_config_get_default_int
(
lc
->
config
,
"proxy"
,
"avpf"
,
LinphoneAVPFDefault
)
:
LinphoneAVPFDefault
;
cfg
->
avpf_rr_interval
=
lc
?
lp_config_get_default_int
(
lc
->
config
,
"proxy"
,
"avpf_rr_interval"
,
5
)
:
5
;
cfg
->
publish_expires
=-
1
;
cfg
->
publish_expires
=
lc
?
lp_config_get_default_int
(
lc
->
config
,
"proxy"
,
"publish_expires"
,
-
1
)
:
-
1
;
cfg
->
refkey
=
refkey
?
ms_strdup
(
refkey
)
:
NULL
;
}
...
...
@@ -1353,6 +1353,7 @@ void linphone_proxy_config_write_to_config_file(LpConfig *config, LinphoneProxyC
lp_config_set_string
(
config
,
key
,
"dial_prefix"
,
cfg
->
dial_prefix
);
lp_config_set_int
(
config
,
key
,
"privacy"
,
cfg
->
privacy
);
if
(
cfg
->
refkey
)
lp_config_set_string
(
config
,
key
,
"refkey"
,
cfg
->
refkey
);
lp_config_set_int
(
config
,
key
,
"publish_expires"
,
cfg
->
publish_expires
);
}
...
...
@@ -1411,6 +1412,7 @@ LinphoneProxyConfig *linphone_proxy_config_new_from_config_file(LinphoneCore* lc
CONFIGURE_INT_VALUE
(
cfg
,
config
,
key
,
privacy
,
"privacy"
)
CONFIGURE_STRING_VALUE
(
cfg
,
config
,
key
,
ref_key
,
"refkey"
)
CONFIGURE_INT_VALUE
(
cfg
,
config
,
key
,
publish_expires
,
"publish_expires"
)
return
cfg
;
}
...
...
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