[SR-Users] Problem with load_gws()
Amit Nepal
amit.n at phoenixinternet.net
Mon Feb 7 20:07:15 CET 2011
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 <jh at tutpro.com
> <mailto:jh at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110207/b6f32f5d/attachment.htm>
More information about the sr-users
mailing list