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
This commit is contained in:
Joshua Colp
2014-03-17 22:54:32 +00:00
parent 932fb5a6e2
commit cc40bf5317
6 changed files with 130 additions and 0 deletions

View File

@@ -241,6 +241,13 @@ res_mwi_external
and other modules that depend on it cannot be built or loaded with
app_voicemail present.
res_pjsip
------------------
* DNS functionality will now automatically be enabled if the system configured
nameservers can be retrieved. If the system configured nameservers can not be
retrieved the functionality will resort to using system resolution. Functionalty
such as SRV records and failover will not be available if system resolution
is in use.
------------------------------------------------------------------------------
--- Functionality changes from Asterisk 11 to Asterisk 12 --------------------