[asterisk-commits] pabelanger: branch 1.6.2 r288147 - /branches/1.6.2/channels/chan_iax2.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Sep 21 17:22:49 CDT 2010
Author: pabelanger
Date: Tue Sep 21 17:22:43 2010
New Revision: 288147
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=288147
Log:
Setup timer before set_config().
(closes issue #18019)
Reported by: Netview
Patches:
issue_0018019.patch uploaded by pabelanger (license 224)
Tested by: Netview
Modified:
branches/1.6.2/channels/chan_iax2.c
Modified: branches/1.6.2/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/channels/chan_iax2.c?view=diff&rev=288147&r1=288146&r2=288147
==============================================================================
--- branches/1.6.2/channels/chan_iax2.c (original)
+++ branches/1.6.2/channels/chan_iax2.c Tue Sep 21 17:22:43 2010
@@ -13876,6 +13876,10 @@
iax_set_output(iax_debug_output);
iax_set_error(iax_error_output);
jb_setoutput(jb_error_output, jb_warning_output, NULL);
+
+ if ((timer = ast_timer_open())) {
+ ast_timer_set_rate(timer, trunkfreq);
+ }
if (set_config(config, 0) == -1) {
if (timer) {
@@ -13895,10 +13899,6 @@
ast_manager_register( "IAXpeerlist", EVENT_FLAG_SYSTEM | EVENT_FLAG_REPORTING, manager_iax2_show_peer_list, "List IAX Peers" );
ast_manager_register( "IAXnetstats", EVENT_FLAG_SYSTEM | EVENT_FLAG_REPORTING, manager_iax2_show_netstats, "Show IAX Netstats" );
ast_manager_register( "IAXregistry", EVENT_FLAG_SYSTEM | EVENT_FLAG_REPORTING, manager_iax2_show_registry, "Show IAX registrations");
-
- if ((timer = ast_timer_open())) {
- ast_timer_set_rate(timer, trunkfreq);
- }
if (ast_channel_register(&iax2_tech)) {
ast_log(LOG_ERROR, "Unable to register channel class %s\n", "IAX2");
More information about the asterisk-commits
mailing list