<br><br><div class="gmail_quote">On Sat, Feb 5, 2011 at 7:50 AM, Juha Heinanen <span dir="ltr"><<a href="mailto:jh@tutpro.com">jh@tutpro.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">Amit Nepal writes:<br>
<br>
> modparam("lcr","db_url",DBURL)<br>
> modparam("lcr", "gw_uri_avp", "$avp(i:709)")<br>
> modparam("lcr", "ruri_user_avp", "$avp(i:500)")<br>
> modparam("lcr", "flags_avp", "$avp(i:712)")<br>
><br>
> route[LCR]<br>
> {<br>
> if(!load_gws()){<br>
> xlog("yes");<br>
> };<br>
><br>
> This gives me error : loading modules under<br>
> /usr/local/lib/kamailio/modules_k/:/usr/local/lib/kamailio<br>
> 0(1265) : <core> [cfg.y:3412]: parse error in config file<br>
> routes/route-lcr.cfg<br>
> unknown command, missing loadmodule? for load_gws()<br>
><br>
> ERROR: bad config file (1 errors)<br>
><br>
> Any guidance please ?<br>
<br>
</div>check that you have loaded lcr module with loadmodule script command.<br>
<font color="#888888"><br></font></blockquote><br>most probably the error is because the function is missing lcr_id parameter:<br><a href="http://kamailio.org/docs/modules/stable/modules/lcr.html#id2945977">http://kamailio.org/docs/modules/stable/modules/lcr.html#id2945977</a><br>
<br>Cheers,<br>Daniel<br></div>-- <br>Daniel-Constantin Mierla<br> <a href="http://www.asipto.com">http://www.asipto.com</a><br>