aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_skinny.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-24 02:56:15 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-24 02:56:15 +0000
commit4fc21f5b06c1fbc3302e23989742a3913da8a79e (patch)
tree60bf2449c1d63ec5161a0020a7a71f766057615a /channels/chan_skinny.c
parent8ee43b1f52914bab8d125c06d8f9b84c1852484a (diff)
actually get the host's name for the code that needs it (bug #4569)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5998 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_skinny.c')
-rwxr-xr-xchannels/chan_skinny.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c
index 6c6d46454..7f96e8fcf 100755
--- a/channels/chan_skinny.c
+++ b/channels/chan_skinny.c
@@ -3113,13 +3113,10 @@ static int reload_config(void)
struct skinny_device *d;
int oldport = ntohs(bindaddr.sin_port);
-#if 0
- hp = ast_gethostbyname(ourhost, &ahp);
- if (!hp) {
+ if (gethostname(ourhost, sizeof(ourhost))) {
ast_log(LOG_WARNING, "Unable to get hostname, Skinny disabled\n");
return 0;
}
-#endif
cfg = ast_config_load(config);
/* We *must* have a config file otherwise stop immediately */