[asterisk-commits] jamesgolovich: trunk r103306 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Feb 11 00:06:00 CST 2008


Author: jamesgolovich
Date: Mon Feb 11 00:05:59 2008
New Revision: 103306

URL: http://svn.digium.com/view/asterisk?view=rev&rev=103306
Log:
Don't wipe out transport and fd in chan_sip on reload (issue 0011930)


Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=103306&r1=103305&r2=103306
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon Feb 11 00:05:59 2008
@@ -19381,6 +19381,8 @@
 		peer->expire = -1;
 		peer->pokeexpire = -1;
 		peer->addr.sin_port = htons(STANDARD_SIP_PORT);
+		peer->socket.type = SIP_TRANSPORT_UDP;
+		peer->socket.fd = -1;
 	}
 	ast_copy_flags(&peer->flags[0], &global_flags[0], SIP_FLAGS_TO_COPY);
 	ast_copy_flags(&peer->flags[1], &global_flags[1], SIP_PAGE2_FLAGS_TO_COPY);
@@ -19413,8 +19415,6 @@
 	peer->pickupgroup = 0;
 	peer->maxms = default_qualify;
 	peer->prefs = default_prefs;
-	peer->socket.type = SIP_TRANSPORT_UDP;
-	peer->socket.fd = -1;
 	peer->stimer.st_mode_oper = global_st_mode;	/* Session-Timers */
 	peer->stimer.st_ref = global_st_refresher;
 	peer->stimer.st_min_se = global_min_se;




More information about the asterisk-commits mailing list