[asterisk-commits] oej: branch group/pine-multiple-externip-1.4 r311845 - /team/group/pine-multi...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 29 09:14:28 CDT 2011


Author: oej
Date: Tue Mar 29 09:14:22 2011
New Revision: 311845

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=311845
Log:
Reset the externip at reload...

Modified:
    team/group/pine-multiple-externip-1.4/channels/chan_sip.c

Modified: team/group/pine-multiple-externip-1.4/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pine-multiple-externip-1.4/channels/chan_sip.c?view=diff&rev=311845&r1=311844&r2=311845
==============================================================================
--- team/group/pine-multiple-externip-1.4/channels/chan_sip.c (original)
+++ team/group/pine-multiple-externip-1.4/channels/chan_sip.c Tue Mar 29 09:14:22 2011
@@ -18677,6 +18677,7 @@
 	/* If we have realm authentication information, remove them (reload) */
 	clear_realm_authentication(peer->auth);
 	peer->auth = NULL;
+	memset(&peer->externip, 0, sizeof(peer->externip));
 
 	for (; v || ((v = alt) && !(alt=NULL)); v = v->next) {
 		if (!devstate_only) {
@@ -18821,6 +18822,7 @@
 			} else if (!strcasecmp(v->name, "externip") || !strcasecmp(v->name, "externaddr")) {
 				struct hostent *hp;
 				struct ast_hostent ahp;
+
 				if (localaddr == NULL) {
 					ast_log(LOG_ERROR, "Setting externip in peer section [%s] without any localnet configuration in the [general] section will not work at line %d.\n", peer->name, v->lineno);
 				} else {




More information about the asterisk-commits mailing list