Following up here. Shouldn't event_route[tm:local-response] be executed for
every locally generated request, not just the first few after Kamailio start?
Kaufman
From: Kaufman
Sent: Wednesday, July 5, 2023 11:14 AM
To: Kamailio (SER) - Users Mailing List
Subject: [SR-Users] event_route[tm:loc
Hi,
If you want 5 random digits stored in $var(seq), try this:
$var(seq) = '';
$var(i) = 5;
while($var(i) > 0) {
$var(seq) = $var(seq) + ($RANDOM mod 10);
$var(i) = $var(i) - 1;
}
My results, test logging xinfo("SEQUENCE = $var(seq)\n"):
2(18) INFO: [e82447e7-9
Hello,
As per Kamailio documentation, $RANDOM returns a random value from the [0 -
2^31) range. But when testing it it's always returning a random number of 9 or
10 digits.
I'm not sure if it's always the case or if it can also returns numbers with 1
or 2 digits as well.
Another question, how
Hello,
Have you tried to use REDIS as a backend for the DLG module?
You can count active calls per node like:
modparam("htable", "htable", "dialog_counter=>size=8;")
event_route[dialog:start]{
if($sht(dialog_counter=>count) == $null){
sht_lock(dialog_counter=>count);
$sht(dia