From: Mark Spencer Date: Fri, 27 Aug 2004 20:19:14 +0000 (+0000) Subject: Fix nat registration (bug #2315) X-Git-Tag: 1.0.0~159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de1d9a90dd83d39f682c74badcbfcfbcd5ed6429;p=thirdparty%2Fasterisk.git Fix nat registration (bug #2315) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3667 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 7c235d537e..f8004fdddb 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4339,7 +4339,7 @@ static int parse_contact(struct sip_pvt *pvt, struct sip_peer *p, struct sip_req } else port = DEFAULT_SIP_PORT; memcpy(&oldsin, &p->addr, sizeof(oldsin)); - if (p->nat & SIP_NAT_RFC3581) { + if (!(p->nat & SIP_NAT_ROUTE)) { /* XXX This could block for a long time XXX */ hp = ast_gethostbyname(n, &ahp); if (!hp) {