[Asterisk-cvs] asterisk/channels chan_sip.c,1.480,1.481

markster at lists.digium.com markster at lists.digium.com
Fri Aug 27 15:19:39 CDT 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv26798/channels

Modified Files:
	chan_sip.c 
Log Message:
Fix nat registration (bug #2315)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.480
retrieving revision 1.481
diff -u -d -r1.480 -r1.481
--- chan_sip.c	27 Aug 2004 03:16:16 -0000	1.480
+++ chan_sip.c	27 Aug 2004 20:19:14 -0000	1.481
@@ -4339,7 +4339,7 @@
 	} 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)  {




More information about the svn-commits mailing list