summaryrefslogtreecommitdiff
path: root/include/asterisk/dns.h
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2014-03-17 22:54:32 +0000
committerJoshua Colp <jcolp@digium.com>2014-03-17 22:54:32 +0000
commitcc40bf53173ec40a26d4eb35184dd7d39f208efc (patch)
tree9f38be9c86724ea595541fff54c7e041061f1301 /include/asterisk/dns.h
parent932fb5a6e231c511a74e7a78693cdac1abad7690 (diff)
res_pjsip: Enable PJSIP DNS client support.
This change enables DNS client support within PJSIP. System nameservers are automatically discovered using res_init or res_ninit. If this fails then PJSIP will resort to using gethostbyname for resolution. By enabling this support we gain SRV support, failover, and weight support. (closes issue ASTERISK-23435) Reported by: Matt Jordan Review: https://reviewboard.asterisk.org/r/3343/ ........ Merged revisions 410795 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@410796 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/dns.h')
-rw-r--r--include/asterisk/dns.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asterisk/dns.h b/include/asterisk/dns.h
index 64cf68c10..4899fa8b4 100644
--- a/include/asterisk/dns.h
+++ b/include/asterisk/dns.h
@@ -36,4 +36,7 @@
int ast_search_dns(void *context, const char *dname, int class, int type,
int (*callback)(void *context, unsigned char *answer, int len, unsigned char *fullanswer));
+/*! \brief Retrieve the configured nameservers of the system */
+struct ao2_container *ast_dns_get_nameservers(void);
+
#endif /* _ASTERISK_DNS_H */