Hi,
I have a timer which is called each 5 seconds:
modparam("timer", "declare_timer",
"REFRESH_CALLSTATE_TIMER=REFRESH_CALLSTATE_TIMER,5000,slow");
I'm enabling setting the variable "testvar" and enabling the timer when an
INVITE is received:
if (is_method("INVITE|ACK|UPDATE|CANCEL|BYE")) {
$var(testvar) = "blablabla";
timer_enable("REFRESH_CALLSTATE_TIMER", "1");
...
route[REFRESH_CALLSTATE_TIMER] {
xlog("L_INFO", "Testvariable: $var(test)\n");
}
However, the variable is always 0:
INFO: <script>: Testvariable: 0
I've also tried printing pseudovariables like $ci, $du but nothinh seems accessible.
Is there a workaround for this?
Best regards,
Dries