Module: sip-router
Branch: 3.3
Commit: 211ef44012b744f05db1ff17cf23f824727ee6da
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=211ef44…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Jul 12 00:44:51 2013 +0200
core: avoid doing dns srv again after naptr function that includes srv lookup
(cherry picked from commit 80935f9e8bbe20e5c320828183999b5d395ec34c)
---
resolve.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/resolve.c b/resolve.c
index 17772b7..3537b88 100644
--- a/resolve.c
+++ b/resolve.c
@@ -1515,6 +1515,7 @@ struct hostent* _sip_resolvehost(str* name, unsigned short* port,
char* proto)
#ifdef USE_NAPTR
if (cfg_get(core, core_cfg, dns_try_naptr))
res = naptr_sip_resolvehost(name, port, proto);
+ else
#endif
res = srv_sip_resolvehost(name, 0, port, proto, 0, 0);
if( unlikely(!res) ){