Hi

I need to take in a priority (from 0 to 100, 0 being highest prio) and convert this into a Q value between 0 and 1.0

My idea was to simply do:

q_value = 1 - ($var(priority)/100)

However, it seems Kamailio only deals in integers in the config. A Previous post suggested using xavp vars, but this ends up the same result.

Apart from doing a pseudo SQL query "SELECT 1 - (20/100)" is there any way within the config I can do such maths?

Thanks


--
-Barry Flanagan

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:

Reply via email to