Fix nat registration (bug #2315)
authorMark Spencer <markster@digium.com>
Fri, 27 Aug 2004 20:19:14 +0000 (20:19 +0000)
committerMark Spencer <markster@digium.com>
Fri, 27 Aug 2004 20:19:14 +0000 (20:19 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3667 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 7c235d5..f8004fd 100755 (executable)
@@ -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)  {