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
0dadf758
Commit
0dadf758
authored
Apr 11, 2013
by
Sylvain Berfini
Browse files
Merge branch 'master' of
git://git.linphone.org/linphone
parents
a3e275c1
0fa5d7c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
coreapi/linphonecall.c
coreapi/linphonecall.c
+2
-2
coreapi/linphonecore.c
coreapi/linphonecore.c
+2
-6
No files found.
coreapi/linphonecall.c
View file @
0dadf758
...
...
@@ -469,7 +469,7 @@ LinphoneCall * linphone_call_new_outgoing(struct _LinphoneCore *lc, LinphoneAddr
call
->
op
=
sal_op_new
(
lc
->
sal
);
sal_op_set_user_pointer
(
call
->
op
,
call
);
call
->
core
=
lc
;
linphone_core_get_local_ip
(
lc
,
linphone_address_get_domain
(
to
)
,
call
->
localip
);
linphone_core_get_local_ip
(
lc
,
NULL
,
call
->
localip
);
linphone_call_init_common
(
call
,
from
,
to
);
_linphone_call_params_copy
(
&
call
->
params
,
params
);
sal_op_set_custom_header
(
call
->
op
,
call
->
params
.
custom_headers
);
...
...
@@ -528,7 +528,7 @@ LinphoneCall * linphone_call_new_incoming(LinphoneCore *lc, LinphoneAddress *fro
}
linphone_address_clean
(
from
);
linphone_core_get_local_ip
(
lc
,
linphone_address_get_domain
(
from
)
,
call
->
localip
);
linphone_core_get_local_ip
(
lc
,
NULL
,
call
->
localip
);
linphone_call_init_common
(
call
,
from
,
to
);
call
->
log
->
call_id
=
ms_strdup
(
sal_op_get_call_id
(
op
));
/*must be known at that time*/
linphone_core_init_default_params
(
lc
,
&
call
->
params
);
...
...
coreapi/linphonecore.c
View file @
0dadf758
...
...
@@ -1211,9 +1211,8 @@ void linphone_core_set_state(LinphoneCore *lc, LinphoneGlobalState gstate, const
}
static
void
misc_config_read
(
LinphoneCore
*
lc
)
{
LpConfig
*
config
=
lc
->
config
;
lc
->
max_call_logs
=
lp_config_get_int
(
config
,
"misc"
,
"history_max_size"
,
15
);
lc
->
max_calls
=
lp_config_get_int
(
config
,
"misc"
,
"max_calls"
,
NB_MAX_CALLS
);
linphone_core_set_log_level
((
OrtpLogLevel
)
lp_config_get_int
(
config
,
"misc"
,
"log_level"
,
0
));
lc
->
max_call_logs
=
lp_config_get_int
(
config
,
"misc"
,
"history_max_size"
,
15
);
lc
->
max_calls
=
lp_config_get_int
(
config
,
"misc"
,
"max_calls"
,
NB_MAX_CALLS
);
}
...
...
@@ -2170,9 +2169,6 @@ void linphone_core_iterate(LinphoneCore *lc){
}
if
(
one_second_elapsed
)
{
if
(
ortp_get_log_level_mask
()
!=
lp_config_get_int
(
lc
->
config
,
"misc"
,
"log_level"
,
0
))
{
lp_config_set_int
(
lc
->
config
,
"misc"
,
"log_level"
,
ortp_get_log_level_mask
());
}
if
(
lp_config_needs_commit
(
lc
->
config
))
{
lp_config_sync
(
lc
->
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