[asterisk-commits] kmoore: trunk r361987 - in /trunk: ./ channels/chan_iax2.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Apr 12 11:25:14 CDT 2012
Author: kmoore
Date: Thu Apr 12 11:25:09 2012
New Revision: 361987
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=361987
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
........
Merged revisions 361972 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 361981 from http://svn.asterisk.org/svn/asterisk/branches/10
Modified:
trunk/ (props changed)
trunk/channels/chan_iax2.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.
Modified: trunk/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_iax2.c?view=diff&rev=361987&r1=361986&r2=361987
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Thu Apr 12 11:25:09 2012
@@ -13258,6 +13258,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