<div dir="ltr"><div><div><div><div><div><div><div><div>Hello Kamailio list!</div><div><br></div>I've been working with the LCR module and I wanted to use the lcr_id to match some ID's I have somewhere else.<br></div>However, due to the lcr_count my lcr_ids must be less than the lcr_count. I understand the reason behind the lcr_count, what I think is a mistake is to have the lcr_id dependent of the lcr_count.<br></div>Ideally we should be able to use any lcr_id value, just observing that the total amount of lcr groups should not exceed the lcr_count.<br></div>The problem is this if that appears in the load_gws, to_gw and from_gw functions in lcr_mod.c:<br>    if ((lcr_id < 1) || (lcr_id > lcr_count_param)) {<br>    LM_ERR("invalid lcr_id parameter value %d\n", lcr_id);<br>    return -1;<br>    }<br></div><br></div></div><div>I ended up using another table to make the conversion of ids, but this is horrible.... Any other reason to force the lcr_id to be less than the lcr_count?<br></div><div><br></div>Best Regards,<br></div>Patrick Wakano<br></div>