On 31.05.2023 13:00, Michele Pinassi via Users wrote:
User XXXX has 2 calls (max 10 calls): BUSY
...
User XXXX has 1 calls (max 10 calls): ALLOW

Any hints or suggestion?

Hi, Michele!

It looks like there is some string comparison going on in there, which would explain both samples. For example:

"2" > "10" (true)  -------> BUSY
"1" > "10" (false) -------> ALLOW

Just make sure both variables contain integer values and you should be good.  I'm suspecting avp_db_load() produces string outputs, so you must perform integer conversion using the {s.int} transformation: $(avp(maxcalls){s.int})

Best regards,

--
Liviu Chircu
www.twitter.com/liviuchircu  |www.opensips-solutions.com
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to