From c6dd0ef286db274fcbc6d92f663200b81ab41b91 Mon Sep 17 00:00:00 2001 From: Gregory Nietsky Date: Thu, 22 Sep 2011 09:22:26 +0000 Subject: [PATCH] If IP address is used in chan_h323 host parameter of peer configuration. module tries to resolve IP address to IP address and fails. Simple fix to set family of socket this is a hangover from ipv6 changes. (closes issue ASTERISK-18237) (issue ASTERISK-17278) (issue ASTERISK-17500) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@337486 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_h323.c | 1 + 1 file changed, 1 insertion(+) diff --git a/channels/chan_h323.c b/channels/chan_h323.c index 8a2593265f..622914a8de 100644 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -1550,6 +1550,7 @@ static struct oh323_peer *build_peer(const char *name, struct ast_variable *v, s { struct ast_sockaddr tmp; + tmp.ss.ss_family = AF_INET; if (ast_get_ip(&tmp, v->value)) { ast_log(LOG_ERROR, "Could not determine IP for %s\n", v->value); ASTOBJ_UNREF(peer, oh323_destroy_peer);