Pass the correct value to ast_timer_set_rate() for IAX2 trunking.
[asterisk/asterisk.git] / channels / chan_iax2.c
index 3e5d84f..8bdde9b 100644 (file)
@@ -14750,7 +14750,7 @@ static int load_module(void)
        jb_setoutput(jb_error_output, jb_warning_output, NULL);
        
        if ((timer = ast_timer_open())) {
-               ast_timer_set_rate(timer, trunkfreq);
+               ast_timer_set_rate(timer, 1000 / trunkfreq);
        }
 
        if (set_config(config, 0) == -1) {