<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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 ? <br>
<pre class="moz-signature" cols="72">Thank You
Amit Nepal
Systems Administrator
Phoenix Internet
Phone: 602-385-0731
602-234-0917#112
<a class="moz-txt-link-freetext" href="http://www.phoenixinternet.net">http://www.phoenixinternet.net</a></pre>
<br>
On 2/5/2011 2:06 AM, Daniel-Constantin Mierla wrote:
<blockquote
cite="mid:AANLkTikeT4ta7tZdDQzMBR_r3r+BA5=M_cOJ9zx4iwBR@mail.gmail.com"
type="cite"><br>
<br>
<div class="gmail_quote">On Sat, Feb 5, 2011 at 7:50 AM, Juha
Heinanen <span dir="ltr"><<a moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true" href="http://www.asipto.com">http://www.asipto.com</a><br>
</blockquote>
</body>
</html>