Don't record SIP dialog history if it's not turned on. Also, put an upper
commit7825fd885f5417e080b21e091b959df73aa754af
authorrussell <russell@614ede4d-c843-0410-af14-a771ab80d22e>
Tue, 21 Aug 2007 18:42:15 +0000 (21 18:42 +0000)
committerrussell <russell@614ede4d-c843-0410-af14-a771ab80d22e>
Tue, 21 Aug 2007 18:42:15 +0000 (21 18:42 +0000)
treec0a433afe539b77e81f3c88e54c1356280346e4f
parent9d4a8e8b27951f2c19ebf0f79b85e0b4dbd02941
Don't record SIP dialog history if it's not turned on.  Also, put an upper
limit on how many history entires will be stored for each SIP dialog.  It is
currently set to 50, but can be increased if deemed necessary.
(closes issue #10421, closes issue #10418, patches suggested by jmoldenhauer,
 patches updated by me)
(Security implications documented in AST-2007-020)

git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@80183 614ede4d-c843-0410-af14-a771ab80d22e
channels/chan_sip.c