From: Michiel van Baak Date: Thu, 26 Jun 2008 23:18:46 +0000 (+0000) Subject: remove block of commented code to set __ourip X-Git-Tag: 1.6.2.0-beta1~1887 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea326c832f2612eb74821be6c68020e0e0ba03d1;p=thirdparty%2Fasterisk.git remove block of commented code to set __ourip 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 --- diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c index 8b0a6130bd..83b1b45232 100644 --- a/channels/chan_skinny.c +++ b/channels/chan_skinny.c @@ -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; }