Certainly app_lua (or any scripting language plugin, or KEMI, or system call)
can do this, but that quickly falls out of scope of "Kamailio doing it" and
into having an external program do it. Most modules that would have
functionality that requires "look up criteria based on a value" rely on
Thanks Kaufman,
Relying on DB is of course one way to do it, but I thought that there are some
modules that could be used and are faster, like app_lua but I'm not sure if it
can be used to select a number randomly from a pool saved in a file.
Regards,
From: Kaufman
Sent: Wednesday, August
There's functionally two parts to this question:
1. How to change a number
2. How to select a random number
For selection of the number it's probably easiest to rely on DB lookup. With
one column as the original number and another column as the possible
replacement numbers, then just