[svn-commits] kmoore: branch 10 r361981 - in /branches/10: ./ channels/chan_iax2.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Apr 12 11:22:32 CDT 2012


Author: kmoore
Date: Thu Apr 12 11:22:28 2012
New Revision: 361981

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=361981
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

Modified:
    branches/10/   (props changed)
    branches/10/channels/chan_iax2.c

Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/10/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/channels/chan_iax2.c?view=diff&rev=361981&r1=361980&r2=361981
==============================================================================
--- branches/10/channels/chan_iax2.c (original)
+++ branches/10/channels/chan_iax2.c Thu Apr 12 11:22:28 2012
@@ -13366,6 +13366,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 svn-commits mailing list