Instead of iterate through all dialogs, add two separte container for needdestroy...
authorStefan Schmidt <sst@sil.at>
Tue, 21 Sep 2010 20:27:04 +0000 (20:27 +0000)
committerStefan Schmidt <sst@sil.at>
Tue, 21 Sep 2010 20:27:04 +0000 (20:27 +0000)
commitee5af946e2bba00fa6e7428b3f8691431ed75009
treec9f61b98070942d1154b2c178ddc7d444a711ac5
parent949c16de776bb2aa2b041471f90f42a15f160a1d
Instead of iterate through all dialogs, add two separte container for needdestroy and rtptimeout

adding two dialog container, one for dialogs which need destroy, another for rtptimeout checks.
both container will be checked on every loop of do_monitor instead of iterate through all dialogs.

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

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

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