]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Pass the correct value to ast_timer_set_rate() for IAX2 trunking.
authorSean Bright <sean@malleable.com>
Fri, 17 Feb 2012 19:32:52 +0000 (19:32 +0000)
committerSean Bright <sean@malleable.com>
Fri, 17 Feb 2012 19:32:52 +0000 (19:32 +0000)
commit338fd29f445c0ce3cc610487d38d4a15de5ab8ee
treee271f4be067c7f33963364abb636b21fce67faa2
parent202d83c42c2e6cfe149b6691b0d7fe74b17702c7
Pass the correct value to ast_timer_set_rate() for IAX2 trunking.

IAX2 uses the trunkfreq variable to determine how often to send trunk packets, but
this value is in milliseconds while ast_timer_set_rate() expects the rate argument
to be ticks per second.  So we divide 1000 by trunkfreq and pass that in instead.

With a default of 20ms, this change makes IAX2 send trunk packets every 20ms
instead of every 50ms.

Tracked down by myself and Bob Wienholt.

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