]> git.ipfire.org Git - thirdparty/asterisk.git/commit
don't iterate through all dialogs to find and delete old subscribes
authorStefan Schmidt <sst@sil.at>
Fri, 1 Oct 2010 09:42:22 +0000 (09:42 +0000)
committerStefan Schmidt <sst@sil.at>
Fri, 1 Oct 2010 09:42:22 +0000 (09:42 +0000)
commit097becdba1ec266de0d3665736141216ee52183e
tree0c46f433bd3efb9ad6b8cc41c76107142d936b7d
parent32d3205f0eaea0481a0974e029dc628e01f68be6
don't iterate through all dialogs to find and delete old subscribes

On every incoming subscribe there is a iteration through all dialogs to find old subscribes and delete them. This is slow and not RFC conform. This was only needed in 1.2 cause a subscribe was not deleted when a dialog was destroyed, after 1.4 a subscribe get removed when its dialog is destroyed.

(closes issue #17950)
Reported by: schmidts
Tested by: schmidts

Review: https://reviewboard.asterisk.org/r/901/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289622 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c