[SR-Users] Re: change A number using a pool of numbers

2023-08-03 Thread Kaufman
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

[SR-Users] Re: change A number using a pool of numbers

2023-08-03 Thread Ali Taher
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

[SR-Users] Re: change A number using a pool of numbers

2023-08-02 Thread Kaufman
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