From dries@degendt.com Wed Nov 29 21:02:49 2023 From: dries@degendt.com To: sr-users@lists.kamailio.org Subject: [SR-Users] No access to variables within timer route Date: Wed, 29 Nov 2023 21:02:40 +0000 Message-ID: <170129176081.1570.7772619828783390214@main.kamailio.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1602807357==" --===============1602807357== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, I have a timer which is called each 5 seconds: modparam("timer", "declare_timer", "REFRESH_CALLSTATE_TIMER=3DREFRESH_CALLSTA= TE_TIMER,5000,slow"); I'm enabling setting the variable "testvar" and enabling the timer when an IN= VITE is received: if (is_method("INVITE|ACK|UPDATE|CANCEL|BYE")) { $var(testvar) =3D "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: