[Serdev] Weight and prefix/strip column in the lcr table

Andreas Granig andreas.granig at inode.info
Wed Mar 9 11:56:26 UTC 2005


Hi,


Thanks for your feedback!

> mysql> select * from lcr;
> +--------+----------+--------+----------+
> | prefix | from_uri | grp_id | priority |
> +--------+----------+--------+----------+
> | %      | %        |      1 |        1 |
> +--------+----------+--------+----------+

prefix has to be '' (it's a prefix, not a wildcard).

>     if (!load_gws())   {
>        sl_send_reply("500", "Internal server error, Cannot load gateways");
>        break;
>     };

You don't take care of capabilities here. If you want to do so, you've 
to say

   if(!load_gws("1")) { ... }


Nontheless there was a bug when load_gws() was used instead of 
load_gws("<x>"), which is fixed in the attached diff (again against a 
clean version of the 0.9.0-backport).

Please try it again with your current config (shouldn't segfault any 
more), then adapt your config to take advantage of the capabilities.

Andy

BTW, note that gw_cap.cap_value is used as bit-field, so in 
load_gws("<x>") use values like x=1, x=2, x=4, x=8 and so on, and in 
gw_cap.cap_value you can enter combinations of these.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: lcr.diff
Type: text/x-patch
Size: 15918 bytes
Desc: not available
Url : http://lists.iptel.org/pipermail/serdev/attachments/20050309/d12e6e9b/lcr.bin


More information about the Serdev mailing list