[prev in list] [next in list] [prev in thread] [next in thread]
List: asterisk-commits
Subject: [asterisk-commits] twilson: trunk r315675 - in /trunk: ./
From: SVN commits to the Asterisk project <asterisk-commits () lists ! digium ! com>
Date: 2011-04-26 23:11:04
Message-ID: E1QErPN-0005rL-JS () wibble ! digium ! internal
[Download RAW message or body]
Author: twilson
Date: Tue Apr 26 18:10:58 2011
New Revision: 315675
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=315675
Log:
Merged revisions 315673 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
................
r315673 | twilson | 2011-04-26 15:56:19 -0700 (Tue, 26 Apr 2011) | 25 lines
Merged revisions 315672 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2
................
r315672 | twilson | 2011-04-26 15:52:25 -0700 (Tue, 26 Apr 2011) | 18 lines
Merged revisions 315671 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r315671 | twilson | 2011-04-26 15:47:56 -0700 (Tue, 26 Apr 2011) | 11 lines
Make sure unregistering a peer unlinks it from the peer container
Instead of mostly copying the code from expire_register, just use the function
that "does the right thing".
(closes issue #16033)
Reported by: kkm
Patches:
016033-tilgman-fixed-refcount.diff uploaded by kkm (license 888)
Tested by: kkm, tilghman, twilson
........
................
................
Modified:
trunk/ (props changed)
trunk/channels/chan_sip.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_sip.c?view=diff&rev=315675&r1=315674&r2=315675
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Apr 26 18:10:58 2011
@@ -13561,25 +13561,10 @@
return PARSE_REGISTER_QUERY;
} else if (!strcasecmp(curi, "*") || !expire) { /* Unregister this peer */
/* This means remove all registrations and return OK */
- memset(&peer->addr, 0, sizeof(peer->addr));
- set_socket_transport(&peer->socket, peer->default_outbound_transport);
-
AST_SCHED_DEL_UNREF(sched, peer->expire,
unref_peer(peer, "remove register expire ref"));
-
- destroy_association(peer);
-
- register_peer_exten(peer, FALSE); /* Remove extension from regexten= setting in \
sip.conf */
- ast_string_field_set(peer, fullcontact, "");
- ast_string_field_set(peer, useragent, "");
- peer->sipoptions = 0;
- peer->lastms = 0;
- peer->portinuri = 0;
- pvt->expiry = 0;
-
ast_verb(3, "Unregistered SIP '%s'\n", peer->name);
-
- manager_event(EVENT_FLAG_SYSTEM, "PeerStatus", "ChannelType: SIP\r\nPeer: \
SIP/%s\r\nPeerStatus: Unregistered\r\n", peer->name); \
+ expire_register(ref_peer(peer,"add ref for explicit expire_register")); return \
PARSE_REGISTER_UPDATE; }
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-commits mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic