I have been looking at examples where load_gws() is used without
parameters, is it customary to pass the group id ? I got that working by
passing the group id of the gateways to load or is there any way to load
all the gateways regardless of their group ?
Thank You
Amit Nepal
Systems Administrator
Phoenix Internet
Phone: 602-385-0731
602-234-0917#112
http://www.phoenixinternet.net
On 2/5/2011 2:06 AM, Daniel-Constantin Mierla wrote:
On Sat, Feb 5, 2011 at 7:50 AM, Juha Heinanen <j...@tutpro.com
<mailto:j...@tutpro.com>> wrote:
Amit Nepal writes:
> modparam("lcr","db_url",DBURL)
> modparam("lcr", "gw_uri_avp", "$avp(i:709)")
> modparam("lcr", "ruri_user_avp", "$avp(i:500)")
> modparam("lcr", "flags_avp", "$avp(i:712)")
>
> route[LCR]
> {
> if(!load_gws()){
> xlog("yes");
> };
>
> This gives me error : loading modules under
> /usr/local/lib/kamailio/modules_k/:/usr/local/lib/kamailio
> 0(1265) : <core> [cfg.y:3412]: parse error in config file
> routes/route-lcr.cfg
> unknown command, missing loadmodule? for load_gws()
>
> ERROR: bad config file (1 errors)
>
> Any guidance please ?
check that you have loaded lcr module with loadmodule script command.
most probably the error is because the function is missing lcr_id
parameter:
http://kamailio.org/docs/modules/stable/modules/lcr.html#id2945977
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users