]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: Fix a bug causing SIP reloads to remove all entries from the registry
authorJonathan Rose <jrose@digium.com>
Thu, 1 Nov 2012 14:52:23 +0000 (14:52 +0000)
committerJonathan Rose <jrose@digium.com>
Thu, 1 Nov 2012 14:52:23 +0000 (14:52 +0000)
commit509f34863978e1a942560b0234aca2ba3d25d196
treedd0033fd170c7ab2e91112e2fa5ebfd59db69a99
parent05be2e8bee4452997d4c41b28053c3c007112783
chan_sip: Fix a bug causing SIP reloads to remove all entries from the registry

A regression was introduced in chan_sip by changes to sip reload introduced by
r349097. That patch moved peer purging from the beginning of the reload to
after the general configuration was finished. This patch fixes that by undoing
the repositioning of the original peer purging code and using a similar
function after performing general configuration that purges only autocreated
peers that were created when persist mode isn't enabled.

(closes issue ASTERISK-20611)
Reported by: Alisher
Review: https://reviewboard.asterisk.org/r/2171/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@375575 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c
configs/sip.conf.sample