[asterisk-commits] kmoore: branch 1.8 r361972 - /branches/1.8/channels/chan_iax2.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Apr 12 11:18:26 CDT 2012
Author: kmoore
Date: Thu Apr 12 11:18:22 2012
New Revision: 361972
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=361972
Log:
Make trunkfreq take effect when set
Previously, setting trunkfreq had no effect on initial load or on reload and
only ever used the default value. This causes trunkfreq to be used
appropriately on initial load and reload.
(closes issue ASTERISK-19521)
Patch-by: Jaco Kroon
Modified:
branches/1.8/channels/chan_iax2.c
Modified: branches/1.8/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_iax2.c?view=diff&rev=361972&r1=361971&r2=361972
==============================================================================
--- branches/1.8/channels/chan_iax2.c (original)
+++ branches/1.8/channels/chan_iax2.c Thu Apr 12 11:18:22 2012
@@ -13244,6 +13244,9 @@
ast_log(LOG_NOTICE, "trunkfreq must be between 10ms and 1000ms, using 1000ms instead.\n");
trunkfreq = 1000;
}
+ if (timer) {
+ ast_timer_set_rate(timer, 1000 / trunkfreq);
+ }
} else if (!strcasecmp(v->name, "trunkmtu")) {
mtuv = atoi(v->value);
if (mtuv == 0 )
More information about the asterisk-commits
mailing list