nvm..its permissions.so :) stupid me!<br><br><div class="gmail_quote">On Sat, Oct 9, 2010 at 5:38 PM, Shrouk Khan <span dir="ltr">&lt;<a href="mailto:shroukkhan@softverk.is">shroukkhan@softverk.is</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">hi,<div>i have been trying to use the allow_trusted() to allow or disallow invite request from certain IP address. This is the block that i am using:</div>
<div><br></div><div>loadmodule &quot;permission.so&quot; </div><div>
<br></div><div>......</div><div>........</div><div><br></div><div><div>if(is_method(&quot;INVITE&quot;)){</div><div><span style="white-space:pre-wrap">                </span>if(!allow_trusted()){</div><div><span style="white-space:pre-wrap">                        </span>sl_send_reply(&quot;403&quot;,&quot;Address Not allowed&quot;);</div>

<div><span style="white-space:pre-wrap">                        </span>exit;</div><div><span style="white-space:pre-wrap">                </span>}</div><div><span style="white-space:pre-wrap">                </span></div>
<div><span style="white-space:pre-wrap">        </span>}</div><div><br></div><div>but trying to restart kamailio  after this fails. and from the syslog it says:</div><div><br></div><div><div>Oct  9 03:19:49 ubuntu kamailio: ERROR: &lt;core&gt; [sr_module.c:378]: ERROR: load_module: could not find module &lt;permission&gt; in &lt;//lib/kamailio/modules_k/://lib/kamailio/modules/&gt;</div>

<div>Oct  9 03:19:49 ubuntu kamailio: : &lt;core&gt; [cfg.y:3330]: parse error in config file //etc/kamailio/kamailio.cfg, line 151, column 12-26: failed to load module</div><div>Oct  9 03:19:49 ubuntu kamailio: : &lt;core&gt; [cfg.y:3333]: parse error in config file //etc/kamailio/kamailio.cfg, line 356, column 21: unknown command, missing loadmodule?#012</div>

</div><div><br></div><div><br></div><div>I think i forgot to compile kamailio with the support of permission module . but i do not see it anywhere in the ignore list either. can anyone tell me what could be the problem</div>

<div><br></div><div><br></div><div><br></div><div><br></div><br>-- <br>Regards<br><br>Shrouk Khan (Khan)<br>System Administrator / Telecommunication System Developer<br>Office:   +354 4400807 (Reykjavik)<br>           +44   2031370800 (London)<br>

Mobile:  +66  875049439 (Bangkok)<br><br>Web: <a href="http://www.softverk.is" target="_blank">www.softverk.is</a><br><br>Reykjavik, Iceland  //  London, UK   //  Bangkok, Thailand<br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Regards<br><br>Shrouk Khan (Khan)<br>System Administrator / Telecommunication System Developer<br>Office:   +354 4400807 (Reykjavik)<br>           +44   2031370800 (London)<br>
Mobile:  +66  875049439 (Bangkok)<br><br>Web: <a href="http://www.softverk.is">www.softverk.is</a><br><br>Reykjavik, Iceland  //  London, UK   //  Bangkok, Thailand<br>