[OpenSIPS-Users] DROUTING module flag changes

Ben Newlin Ben.Newlin at genesys.com
Fri Oct 1 18:34:14 EST 2021


Hello,

I need some clarification on the new “sort_alg” columns added to the DROUTING module tables in 3.x.

The column was added to the DrRules table, and the documentation has been updated to reflect that the “W” flag passed to do_routing is now deprecated and has been replaced by the value in the table column. That is clear.

However, the sort_alg column was also added to the DrCarriers table. Previously this was specified using the flags column in the table. The Database Schema [1] description for the flags column has been updated to include the flags (they were not listed here before), and the weight flag is not listed. However, the description states that the remaining flags are the first and second bits, where previously the weighting flag was the first bit. Have these bits really been shifted when the weighting flag was removed?

It is not clear because the module documentation [2] has not been updated for the DrCarrier change. It still lists all flags, including the weight flag as the first bit, and does not mention the new sort_alg column at all.

Can anyone clarify the expected behavior here? Were the values for the flags column changed as part of removing the weight flag?

[1] https://www.opensips.org/Documentation/Install-DBSchema-3-2#AEN5138
[2] https://opensips.org/docs/modules/3.2.x/drouting.html#idp170896

Ben Newlin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20211001/f3e92db4/attachment.html>


More information about the Users mailing list