Residual changes for Asterisk v10 branch from ASTERISK-18747.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 8 Nov 2011 22:14:38 +0000 (22:14 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 8 Nov 2011 22:14:38 +0000 (22:14 +0000)
commit9537f22c54a244a6f697f542b218902599f7ae83
tree825e4b00b1c448561c4abfd2e0c20ed170ba2a8a
parentbc370b5462819bdbafcce30319af5a7660211cc5
Residual changes for Asterisk v10 branch from ASTERISK-18747.

Residual changes for Asterisk v10 branch from ASTERISK-18747 after
https://reviewboard.asterisk.org/r/1564/ commit and associated dialogs
callid hash key change fix.

* Make check_rtp_timeout() return CMP_MATCH if need to delete dialog from
dialogs_rtpcheck.  This is an optimization to avoid an unneeded
lock/unlock and object search when using ao2_unlink.

* Prevent crash in check_rtp_timeout() if dialog->rtp is NULL.

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

Merged revisions 344004 from http://svn.asterisk.org/svn/asterisk/branches/10

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