[asterisk-commits] kmoore: trunk r401292 - in /trunk: ./ channels/chan_iax2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Oct 19 16:57:12 CDT 2013


Author: kmoore
Date: Sat Oct 19 16:57:07 2013
New Revision: 401292

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=401292
Log:
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/
........

Merged revisions 401291 from http://svn.asterisk.org/svn/asterisk/branches/12

Modified:
    trunk/   (props changed)
    trunk/channels/chan_iax2.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.

Modified: trunk/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_iax2.c?view=diff&rev=401292&r1=401291&r2=401292
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Sat Oct 19 16:57:07 2013
@@ -4491,6 +4491,7 @@
 	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);




More information about the asterisk-commits mailing list