[asterisk-commits] dvossel: branch dvossel/sip_via_tcp_rework r195948 - /team/dvossel/sip_via_tc...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu May 21 11:43:13 CDT 2009


Author: dvossel
Date: Thu May 21 11:42:58 2009
New Revision: 195948

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=195948
Log:
Fixes issue with peer's default transport not being reset correctly after a peer unregisters.  Before this the default transport would only reset itset if the peer's registration expired.  This is not the same.

Modified:
    team/dvossel/sip_via_tcp_rework/channels/chan_sip.c

Modified: team/dvossel/sip_via_tcp_rework/channels/chan_sip.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/dvossel/sip_via_tcp_rework/channels/chan_sip.c?view=diff&rev=195948&r1=195947&r2=195948
==============================================================================
--- team/dvossel/sip_via_tcp_rework/channels/chan_sip.c (original)
+++ team/dvossel/sip_via_tcp_rework/channels/chan_sip.c Thu May 21 11:42:58 2009
@@ -11817,6 +11817,7 @@
 	} else if (!strcasecmp(curi, "*") || !expire) {	/* Unregister this peer */
 		/* This means remove all registrations and return OK */
 		memset(&peer->addr, 0, sizeof(peer->addr));
+		set_peer_transport(peer, peer->default_outbound_transport);
 
 		AST_SCHED_DEL_UNREF(sched, peer->expire,
 				unref_peer(peer, "remove register expire ref"));




More information about the asterisk-commits mailing list