[Kamailio-Users] LCR problem with "id" column and match priorities

Iñaki Baz Castillo ibc at aliax.net
Fri Oct 23 22:05:39 CEST 2009


El Viernes, 23 de Octubre de 2009, Juha Heinanen escribió:
> Iñaki Baz Castillo writes:
>  > Hi Juha, as this limitation is not present in the module
>  > documentation, and the module doesn't notify it when starting, it
>  > could create serious issues if an admin adds more than 128 gateways
>  > and he doesn't inspect the module source
>  > (really should he do that to realize of this limitation?).
> 
> inaki,
> 
> there is this piece of code in reload_gws_and_lcrs() function:
> 
>   if (RES_ROW_N(res) + 1 > MAX_NO_OF_GWS) {
> 	LM_ERR("too many gateways\n");
> 	goto gw_err;
>     }

I didn't know that.

 
> what do you mean by "the module doesn't notify it when starting"?

IMHO Kamailio shouln't start if there are more gateways than MAX_NO_OF_GWS. 
This is, lcr module should give an error. Does it? (I've not tryed it).

 
>  > 1) Add this information to the module documentation in a clear way.
> 
> i can also add info about the limit in module documentation.

It would be nice :)


-- 
Iñaki Baz Castillo <ibc at aliax.net>



More information about the Users mailing list