<div dir="ltr"><br clear="all"><div>Hi guys</div><div><br></div><div>im currently testing my setup, ive made a rule:</div><div><br></div><div><div>if ($var(FROMIP) == &quot;xxx.xxx.xxx.201&quot; || $var(FROMIP) == &quot;xxx.xxx.xxx.86&quot; || $var(FROMIP) == &quot;xxx.xxx.xxx.13&quot;)</div>
<div>        {</div><div>                xlog(&quot;L_INFO&quot;,&quot;\n IP OK \n&quot;);</div><div>                if (!lookup(&quot;location&quot;,&quot;m&quot;)) {</div><div>                        switch ($retcode)</div>
<div>                        {</div><div>                                case -1:</div><div>                                        route(2);</div><div>                                case -3:</div><div>                                        t_newtran();</div>
<div>                                        t_reply(&quot;404&quot;, &quot;Not Found&quot;);</div><div>                                        exit;</div><div>                                case -2:</div><div>                                        sl_send_reply(&quot;405&quot;, &quot;Method Not Allowed&quot;);</div>
<div>                                        exit;</div><div>                        }</div><div>                }</div><div><br></div><div><br></div><div>        # when routing via usrloc, log the missed calls also</div>
<div>        setflag(2);</div><div><br></div><div>        route(1);</div><div>        }</div></div><div><br></div><div>but for some reason this rule only works when using xxx.xxx.xxx.86 or xxx.xxx.xxx.13, whenenver a call originates from xxx.xxx.xxx.201 it never gets into the location lookup it just goes directly to route(1) loops around a couple of times and then changes src ip. </div>
<div><br></div><div>i suspect that it goes into the loose_route part of the default config. but im not sure why or how ?</div><div dir="ltr"></div>
</div>