don't iterate through all dialogs to find and delete old subscribes
authorStefan Schmidt <sst@sil.at>
Fri, 1 Oct 2010 10:04:31 +0000 (10:04 +0000)
committerStefan Schmidt <sst@sil.at>
Fri, 1 Oct 2010 10:04:31 +0000 (10:04 +0000)
commit15cb4412f8ed41abf29f40c06343f4daf96c9199
tree89c5e2066b3fd6eb75146cc53ed17bee588d02d8
parent6d0e38332157bad2ad3c3667cd80c214e47fb83a
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.

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

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