mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user