Improve performance of pedantic mode dialog searching in chan_sip.
authorKevin P. Fleming <kpfleming@digium.com>
Sat, 24 Oct 2009 14:40:37 +0000 (14:40 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Sat, 24 Oct 2009 14:40:37 +0000 (14:40 +0000)
commitfb0196fce61c78f3b6eddedc540e0b15df620e0c
tree63c1a31984f4d83f354906f2035337af44c597c7
parentcff6d02b539767f449611d7c65a974a726255d2d
Improve performance of pedantic mode dialog searching in chan_sip.

This patch changes chan_sip to use the new astobj2 OBJ_MULTIPLE iterator support
to make pedantic mode dialog searching in find_call() not require a linear search
of all dialogs in the list of dialogs. This patch does *not* change the dialog
matching logic (more on that later), just improves the searching performance.

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