[asterisk-commits] file: trunk r196721 - /trunk/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue May 26 08:43:24 CDT 2009
Author: file
Date: Tue May 26 08:43:13 2009
New Revision: 196721
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=196721
Log:
Fix a bug where the sip unregister CLI command did not completely unregister the peer.
(closes issue #15118)
Reported by: alecdavis
Patches:
chan_sip_unregister.diff2.txt uploaded by alecdavis (license 585)
Modified:
trunk/channels/chan_sip.c
Modified: trunk/channels/chan_sip.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=196721&r1=196720&r2=196721
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue May 26 08:43:13 2009
@@ -15533,6 +15533,8 @@
if ((peer = find_peer(a->argv[2], NULL, load_realtime, FINDPEERS, TRUE))) {
if (peer->expire > 0) {
+ AST_SCHED_DEL_UNREF(sched, peer->expire,
+ unref_peer(peer, "remove register expire ref"));
expire_register(ref_peer(peer, "ref for expire_register"));
ast_cli(a->fd, "Unregistered peer \'%s\'\n\n", a->argv[2]);
} else {
More information about the asterisk-commits
mailing list