[prev in list] [next in list] [prev in thread] [next in thread]
List: serusers
Subject: [SR-Users] No access to variables within timer route
From: dries--- via sr-users <sr-users () lists ! kamailio ! org>
Date: 2023-11-29 21:02:40
Message-ID: 170129176081.1570.7772619828783390214 () main ! kamailio ! org
[Download RAW message or body]
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
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic