remove block of commented code to set __ourip
authorMichiel van Baak <michiel@vanbaak.info>
Thu, 26 Jun 2008 23:18:46 +0000 (23:18 +0000)
committerMichiel van Baak <michiel@vanbaak.info>
Thu, 26 Jun 2008 23:18:46 +0000 (23:18 +0000)
This is now handled in skinny_register and load_config.

part two of chan_skinny cleanup

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@125596 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_skinny.c

index 8b0a613..83b1b45 100644 (file)
@@ -3219,17 +3219,6 @@ static struct skinny_device *build_device(const char *cat, struct ast_variable *
                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;
 }