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
belle-sip
Commits
3017fe57
Commit
3017fe57
authored
Feb 12, 2013
by
Ghislain MARY
Browse files
Working resolver on Android.
parent
c1a2880e
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
src/belle_sip_resolver.c
View file @
3017fe57
...
...
@@ -40,6 +40,15 @@ static struct dns_resolv_conf *resconf(belle_sip_resolver_context_t *ctx) {
#ifdef _WIN32
error
=
dns_resconf_loadwin
(
ctx
->
resconf
);
if
(
error
)
{
belle_sip_error
(
"%s dns_resconf_loadwin error"
,
__FUNCTION__
);
}
#else
#ifdef ANDROID
error
=
dns_resconf_loadandroid
(
ctx
->
resconf
);
if
(
error
)
{
belle_sip_error
(
"%s dns_resconf_loadandroid error"
,
__FUNCTION__
);
}
#else
path
=
"/etc/resolv.conf"
;
error
=
dns_resconf_loadpath
(
ctx
->
resconf
,
path
);
...
...
@@ -53,6 +62,7 @@ static struct dns_resolv_conf *resconf(belle_sip_resolver_context_t *ctx) {
if
(
error
)
{
belle_sip_message
(
"%s dns_nssconf_loadpath error [%s]: %s"
,
__FUNCTION__
,
path
,
dns_strerror
(
error
));
}
#endif
#endif
return
ctx
->
resconf
;
...
...
src/dns.c
View file @
3017fe57
This diff is collapsed.
Click to expand it.
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