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
b65cccea
Commit
b65cccea
authored
Nov 18, 2014
by
Gautier Pelloux-Prayer
Browse files
Use ms_debug instead of ms_message for noisy flattening messages
parent
c973be8d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
coreapi/proxy.c
coreapi/proxy.c
+3
-3
No files found.
coreapi/proxy.c
View file @
b65cccea
...
@@ -924,7 +924,7 @@ int linphone_proxy_config_normalize_number(LinphoneProxyConfig *proxy, const cha
...
@@ -924,7 +924,7 @@ int linphone_proxy_config_normalize_number(LinphoneProxyConfig *proxy, const cha
if
(
is_a_phone_number
(
username
)){
if
(
is_a_phone_number
(
username
)){
char
*
flatten
;
char
*
flatten
;
flatten
=
flatten_number
(
username
);
flatten
=
flatten_number
(
username
);
ms_
message
(
"Flattened number is '%s'"
,
flatten
);
ms_
debug
(
"Flattened number is '%s'"
,
flatten
);
if
(
proxy
->
dial_prefix
==
NULL
||
proxy
->
dial_prefix
[
0
]
==
'\0'
){
if
(
proxy
->
dial_prefix
==
NULL
||
proxy
->
dial_prefix
[
0
]
==
'\0'
){
/*no prefix configured, nothing else to do*/
/*no prefix configured, nothing else to do*/
...
@@ -934,10 +934,10 @@ int linphone_proxy_config_normalize_number(LinphoneProxyConfig *proxy, const cha
...
@@ -934,10 +934,10 @@ int linphone_proxy_config_normalize_number(LinphoneProxyConfig *proxy, const cha
}
else
{
}
else
{
dial_plan_t
dialplan
;
dial_plan_t
dialplan
;
lookup_dial_plan
(
proxy
->
dial_prefix
,
&
dialplan
);
lookup_dial_plan
(
proxy
->
dial_prefix
,
&
dialplan
);
ms_
message
(
"Using dialplan '%s'"
,
dialplan
.
country
);
ms_
debug
(
"Using dialplan '%s'"
,
dialplan
.
country
);
if
(
flatten
[
0
]
==
'+'
||
strstr
(
flatten
,
dialplan
.
icp
)
==
flatten
){
if
(
flatten
[
0
]
==
'+'
||
strstr
(
flatten
,
dialplan
.
icp
)
==
flatten
){
/* the number has international prefix or +, so nothing to do*/
/* the number has international prefix or +, so nothing to do*/
ms_
message
(
"Prefix already present."
);
ms_
debug
(
"Prefix already present."
);
/*eventually replace the plus*/
/*eventually replace the plus*/
replace_plus
(
flatten
,
result
,
result_len
,
proxy
->
dial_escape_plus
?
dialplan
.
icp
:
NULL
);
replace_plus
(
flatten
,
result
,
result_len
,
proxy
->
dial_escape_plus
?
dialplan
.
icp
:
NULL
);
ms_free
(
flatten
);
ms_free
(
flatten
);
...
...
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