[asterisk-commits] mvanbaak: trunk r125596 - /trunk/channels/chan_skinny.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 26 18:18:47 CDT 2008


Author: mvanbaak
Date: Thu Jun 26 18:18:46 2008
New Revision: 125596

URL: http://svn.digium.com/view/asterisk?view=rev&rev=125596
Log:
remove block of commented code to set __ourip
This is now handled in skinny_register and load_config.

part two of chan_skinny cleanup

Modified:
    trunk/channels/chan_skinny.c

Modified: trunk/channels/chan_skinny.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_skinny.c?view=diff&rev=125596&r1=125595&r2=125596
==============================================================================
--- trunk/channels/chan_skinny.c (original)
+++ trunk/channels/chan_skinny.c Thu Jun 26 18:18:46 2008
@@ -3219,17 +3219,6 @@
 		if (/*d->addr.sin_addr.s_addr && */!ntohs(d->addr.sin_port)) {
 			d->addr.sin_port = htons(DEFAULT_SKINNY_PORT);
 		}
-#if 0
-		/* I don't think we need this anymore at all, since d->ourip is set in skinny_register now */
-		if (d->addr.sin_addr.s_addr) {
-			/* XXX See note above, in 'host' option. */
-			if (ast_ouraddrfor(&d->addr.sin_addr, &d->ourip)) {
-				d->ourip = __ourip;
-			}
-		} else {
-			d->ourip = __ourip;
-		}
-#endif
 	}
 	return d;
 }




More information about the asterisk-commits mailing list