timer module
============

Author: tomas.mandys at iptel dot org

Timer support directly from script. Core trigger will trigger specific route block.

mod_params
-----------
timer_id = alphanum
declare_timer = timer_id "=" (route#|route_name) "," interval "," ("slow" | "fast") "," ["enable"]

format:


commands
--------

timer_enable(timer_id, 0|1)


selects
-------

@timer.timer.timer_id.enabled
@timer.executed  ... name of executed timer from called route script


Examples:
--------
1) example

loadmodule "modules/xlog/xlog.so"
loadmodule "/modules/timer/timer.so"

modparam("timer", "declare_timer", "tmr1=ONTIMER,1000"); 
modparam("timer", "declare_timer", "tmr2=ONTIMER2,2000,slow,enable");

route["print"] {
	xlog("L_INFO", "fired: %@timer.executed\n");
}

route["ONTIMER"] {
	# do something
	route("print");}


route["ONTIMER2"] {
	# do something
	timer_enable("tmr1", 0);
	route("print");
}

