channels/chan_iax2: Improve POKE expiration time calculation for lossy networks
authorMatthew Jordan <mjordan@digium.com>
Fri, 10 Apr 2015 12:40:36 +0000 (12:40 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 10 Apr 2015 12:40:36 +0000 (12:40 +0000)
commit80c443bea4cfb0d028b8cd501f38713732655e68
treeec923c66b57e7a9adec644b02fae7790c0631e5f
parentb3d01f1fbf16160ef2a4cf3a3d37f5b4fce782f4
channels/chan_iax2: Improve POKE expiration time calculation for lossy networks

POKE is used to check for peer availability; however, in networks with packet
loss, the current calculations may result in POKE expiration times that are too
short. This patch alters the expiration/retry time logic to take into account
the last known qualify round trip time, as opposed to always using a static
value for each peer.

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

ASTERISK-22352 #close
Reported by: Frederic Van Espen

ASTERISK-24894 #close
Reported by: Y Ateya
patches:
  poke_noanswer_duration.diff submitted by Y Ateya (License 6693)
........

Merged revisions 434564 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 434565 from http://svn.asterisk.org/svn/asterisk/branches/13

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