Optimize chan_sip.c check_rtp_timeout() function.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 31 Aug 2011 18:11:23 +0000 (18:11 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 31 Aug 2011 18:11:23 +0000 (18:11 +0000)
commit89e79698fd79d5583a15f492aa1ea814033895ed
treefa8121def693c8cb428faaca1fc13f5869fe869b
parentdadc749dacbb7b273a490985ebbba11d26160a50
Optimize chan_sip.c check_rtp_timeout() function.

* Make check_rtp_timeout() remember the values returned by
ast_rtp_instance_get_timeout(), ast_rtp_instance_get_hold_timeout(), and
ast_rtp_instance_get_keepalive() instead of repeatedly calling them.

(closes issue ASTERISK-18319)
Reported by: Rob Gagnon
Patches:
      issue-18319-trunk-r333066.diff (License #6159) patch uploaded by Rob Gagnon

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

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