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
70b92a72
Commit
70b92a72
authored
Apr 22, 2013
by
Ghislain MARY
Browse files
Save DTMFs settings immediately.
parent
12540ce0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
14 deletions
+8
-14
coreapi/linphonecore.c
coreapi/linphonecore.c
+8
-12
coreapi/private.h
coreapi/private.h
+0
-2
No files found.
coreapi/linphonecore.c
View file @
70b92a72
...
...
@@ -598,9 +598,6 @@ static void sip_config_read(LinphoneCore *lc)
int
ipv6
;
int
random_port
;
tmp
=
lp_config_get_int
(
lc
->
config
,
"sip"
,
"use_info"
,
0
);
linphone_core_set_use_info_for_dtmf
(
lc
,
tmp
);
if
(
lp_config_get_int
(
lc
->
config
,
"sip"
,
"use_session_timers"
,
0
)
==
1
){
sal_use_session_timers
(
lc
->
sal
,
200
);
}
...
...
@@ -610,9 +607,6 @@ static void sip_config_read(LinphoneCore *lc)
sal_reuse_authorization
(
lc
->
sal
,
lp_config_get_int
(
lc
->
config
,
"sip"
,
"reuse_authorization"
,
0
));
sal_expire_old_registration_contacts
(
lc
->
sal
,
lp_config_get_int
(
lc
->
config
,
"sip"
,
"expire_old_registration_contacts"
,
0
));
tmp
=
lp_config_get_int
(
lc
->
config
,
"sip"
,
"use_rfc2833"
,
1
);
linphone_core_set_use_rfc2833_for_dtmf
(
lc
,
tmp
);
ipv6
=
lp_config_get_int
(
lc
->
config
,
"sip"
,
"use_ipv6"
,
-
1
);
if
(
ipv6
==-
1
){
ipv6
=
0
;
...
...
@@ -1725,7 +1719,7 @@ void linphone_core_set_nortp_timeout(LinphoneCore *lc, int nortp_timeout){
**/
bool_t
linphone_core_get_use_info_for_dtmf
(
LinphoneCore
*
lc
)
{
return
l
c
->
sip_conf
.
use_info
;
return
l
p_config_get_int
(
lc
->
config
,
"sip"
,
"
use_info
"
,
0
)
;
}
/**
...
...
@@ -1735,7 +1729,9 @@ bool_t linphone_core_get_use_info_for_dtmf(LinphoneCore *lc)
**/
void
linphone_core_set_use_info_for_dtmf
(
LinphoneCore
*
lc
,
bool_t
use_info
)
{
lc
->
sip_conf
.
use_info
=
use_info
;
if
(
linphone_core_ready
())
{
lp_config_set_int
(
lc
->
config
,
"sip"
,
"use_info"
,
use_info
);
}
}
/**
...
...
@@ -1745,7 +1741,7 @@ void linphone_core_set_use_info_for_dtmf(LinphoneCore *lc,bool_t use_info)
**/
bool_t
linphone_core_get_use_rfc2833_for_dtmf
(
LinphoneCore
*
lc
)
{
return
l
c
->
sip_conf
.
use_rfc2833
;
return
l
p_config_get_int
(
lc
->
config
,
"sip"
,
"
use_rfc2833
"
,
1
)
;
}
/**
...
...
@@ -1755,7 +1751,9 @@ bool_t linphone_core_get_use_rfc2833_for_dtmf(LinphoneCore *lc)
**/
void
linphone_core_set_use_rfc2833_for_dtmf
(
LinphoneCore
*
lc
,
bool_t
use_rfc2833
)
{
lc
->
sip_conf
.
use_rfc2833
=
use_rfc2833
;
if
(
linphone_core_ready
())
{
lp_config_set_int
(
lc
->
config
,
"sip"
,
"use_rfc2833"
,
use_rfc2833
);
}
}
/**
...
...
@@ -5128,8 +5126,6 @@ void sip_config_uninit(LinphoneCore *lc)
lp_config_set_int
(
lc
->
config
,
"sip"
,
"inc_timeout"
,
config
->
inc_timeout
);
lp_config_set_int
(
lc
->
config
,
"sip"
,
"in_call_timeout"
,
config
->
in_call_timeout
);
lp_config_set_int
(
lc
->
config
,
"sip"
,
"delayed_timeout"
,
config
->
delayed_timeout
);
lp_config_set_int
(
lc
->
config
,
"sip"
,
"use_info"
,
config
->
use_info
);
lp_config_set_int
(
lc
->
config
,
"sip"
,
"use_rfc2833"
,
config
->
use_rfc2833
);
lp_config_set_int
(
lc
->
config
,
"sip"
,
"use_ipv6"
,
config
->
ipv6_enabled
);
lp_config_set_int
(
lc
->
config
,
"sip"
,
"register_only_when_network_is_up"
,
config
->
register_only_when_network_is_up
);
lp_config_set_int
(
lc
->
config
,
"sip"
,
"register_only_when_upnp_is_ok"
,
config
->
register_only_when_upnp_is_ok
);
...
...
coreapi/private.h
View file @
70b92a72
...
...
@@ -438,8 +438,6 @@ typedef struct sip_config
int
delayed_timeout
;
/*timeout after a delayed call is resumed */
unsigned
int
keepalive_period
;
/* interval in ms between keep alive messages sent to the proxy server*/
LCSipTransports
transports
;
bool_t
use_info
;
bool_t
use_rfc2833
;
/*force RFC2833 to be sent*/
bool_t
guess_hostname
;
bool_t
loopback_only
;
bool_t
ipv6_enabled
;
...
...
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