diff options
author | pabelanger <pabelanger@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-09-21 22:22:43 +0000 |
---|---|---|
committer | pabelanger <pabelanger@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-09-21 22:22:43 +0000 |
commit | 3ef8fc23e4509a0b63a74d51757696f3d981e6ef (patch) | |
tree | 5e29f92243dd790dbfa41aaef59ad0e6ae1d09bb /channels | |
parent | 813972f2256066d447bc696370f8be137720999e (diff) |
Setup timer before set_config().
(closes issue #18019)
Reported by: Netview
Patches:
issue_0018019.patch uploaded by pabelanger (license 224)
Tested by: Netview
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@288147 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_iax2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index ebab90190..c2b40f760 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -13876,6 +13876,10 @@ static int load_module(void) 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) { @@ -13896,10 +13900,6 @@ static int load_module(void) 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"); __unload_module(); |