[SR-Users] Problem with load_gws()
Daniel-Constantin Mierla
miconda at gmail.com
Sat Feb 5 10:06:23 CET 2011
On Sat, Feb 5, 2011 at 7:50 AM, Juha Heinanen <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/20110205/37f15a50/attachment.htm>
More information about the sr-users
mailing list