[svn-commits] mjordan: trunk r402508 - in /trunk: ./ channels/chan_sip.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Nov 5 15:17:32 CST 2013
Author: mjordan
Date: Tue Nov 5 15:17:30 2013
New Revision: 402508
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=402508
Log:
chan_sip: Use AST_AF* defined constant when calling ast_get_ip
While the structure passed to ast_get_ip should be set memset to 0, thus
initializing the ss_family member to 0, explicitly setting it to AST_AF_UNSPEC
is more portable.
........
Merged revisions 402507 from http://svn.asterisk.org/svn/asterisk/branches/12
Modified:
trunk/ (props changed)
trunk/channels/chan_sip.c
Propchange: trunk/
------------------------------------------------------------------------------
--- branch-12-merged (original)
+++ branch-12-merged Tue Nov 5 15:17:30 2013
@@ -1,1 +1,1 @@
-/branches/12:1-398558,398560-398577,398579-399305,399307-401390,401392-402367,402387,402398,402416,402427,402429,402438,402452,402501,402503,402505
+/branches/12:1-398558,398560-398577,398579-399305,399307-401390,401392-402367,402387,402398,402416,402427,402429,402438,402452,402501,402503,402505,402507
Modified: trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_sip.c?view=diff&rev=402508&r1=402507&r2=402508
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Nov 5 15:17:30 2013
@@ -30731,6 +30731,7 @@
srvlookup = v->value;
}
} else if (!strcasecmp(v->name, "defaultip")) {
+ peer->defaddr.ss.ss_family = AST_AF_UNSPEC;
if (!ast_strlen_zero(v->value) && ast_get_ip(&peer->defaddr, v->value)) {
sip_unref_peer(peer, "sip_unref_peer: from build_peer defaultip");
return NULL;
More information about the svn-commits
mailing list