[SR-Users] Re: Difference betwwen TM functions in KEMI

2024-07-18 Thread Duarte Rocha via sr-users
Hello Alex, You're totally right, that was the issue. Thank you so much for the help. Helpful as always. Cheers, Duarte Rocha __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to

[SR-Users] Re: Difference betwwen TM functions in KEMI

2024-07-17 Thread Alex Balashov via sr-users
Hello Duarte, I wonder if this is down to differences in JS vs. config script in how truthiness is evaluated in `if` statements. In JavaScript, if(...) evaluates to true if the returned value is a non-zero number (positive or negative). In Kamailio config script[1], in contrast, a value less