On Sat, Feb 5, 2011 at 7:50 AM, Juha Heinanen <jh@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