From: Kinsey Moore Date: Sat, 19 Oct 2013 21:53:08 +0000 (+0000) Subject: Fix IAX2 incoming call address lookups X-Git-Tag: 12.0.0-beta2~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36f77eabf135f1dcc2f49a265cb9b081b9838fdb;p=thirdparty%2Fasterisk.git Fix IAX2 incoming call address lookups This fixes address lookup for incoming calls without a peer definition. The address family was unset instead of being set to AST_AF_UNSPEC which was causing lookup failures on "127.0.0.1". This is one of the causes of the current failure of the app_page integration test. Review: https://reviewboard.asterisk.org/r/2933/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@401291 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 79732fa426..24ce54ac0d 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -4491,6 +4491,7 @@ static int create_addr(const char *peername, struct ast_channel *c, struct ast_s if (!(peer = find_peer(peername, 1))) { struct ast_sockaddr peer_addr; + peer_addr.ss.ss_family = AST_AF_UNSPEC; cai->found = 0; if (ast_get_ip_or_srv(&peer_addr, peername, srvlookup ? "_iax._udp" : NULL)) { ast_log(LOG_WARNING, "No such host: %s\n", peername);