Hi Mino,<div><br></div><div>thank you very much. This solved the problem. Second lookup added (dunno why) an extra branch. I assume this is a bug. Or do I have to specify second lookup somehow special?</div><div><br></div>
<div>Now the question is: I needed second lookup just to make sure a user is not online (the conditional redirect). Is it OK just to make query like this:</div><div><br></div><div><div>sql_query(&quot;ca&quot;,&quot;</div>
<div>           SELECT</div><div>                1</div><div>           FROM</div><div>                 location</div><div>           WHERE</div><div>                 username = $rU</div><div>&quot;,&quot;ra&quot;);</div>
<div><br></div>and check for the number of rows?</div><div><br></div><div>I find out that DB and memory content is not really the same. DB is something about minute behind memory( Do you know the precise time?). If this is true I&#39;m ok with this time. Is there any other difference?</div>
<div><br></div><div>Thanks folks,</div><div><br></div><div>Efelin Novak</div><div><br><div class="gmail_quote">2011/3/28 Mino Haluz <span dir="ltr">&lt;<a href="mailto:mino.haluz@gmail.com">mino.haluz@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>How many lookup(&quot;location&quot;) things do you use in your configuration file ?</div><div><br></div><div>This seems to be the problem with more then once use of this command. Try to avoid this, or check if you can substitute some of them with simple SQL select in location table.</div>
<div><div></div><div class="h5">
<div><br></div><div>On Mon, Mar 28, 2011 at 10:46 AM, Efelin Novak &lt;<a href="mailto:efelin.novak@gmail.com" target="_blank">efelin.novak@gmail.com</a>&gt; wrote:</div><div>&gt; Hi Folks,</div><div>&gt; I have a problem with a registrar module (at least I suppose so). When A</div>

<div>&gt; calls to B, in some specific situation, B receives two INVITEs. This mostly</div><div>&gt; (not only) happens when one account is registered on two or more UAs. In</div><div>&gt; this situation the extra INVITE is sent only to the one that is second in</div>

<div>&gt; the list (kamctl ul show ACCOUNT).</div><div>&gt; kamctl ul show Alice:</div><div>&gt; Contact::</div><div>&gt; &lt;<a href="http://sip:orlvuzyd@192.168.28.72:52129" target="_blank">sip:orlvuzyd@192.168.28.72:52129</a>&gt;;q=0;expires=1916;flags=0x0;cflags=0x40;socket=&lt;udp:<a href="http://8.8.8.8:5060" target="_blank">8.8.8.8:5060</a>&gt;;methods=0xFFFFFFFF;received=&lt;sip:<a href="http://8.8.8.8:52129" target="_blank">8.8.8.8:52129</a>&gt;;user_agent=&lt;Blink</div>

<div>&gt; 0.2.5 (Linux)&gt;</div><div>&gt; Contact::</div><div>&gt; &lt;<a href="http://sip:Alice@192.168.28.51:5060" target="_blank">sip:Alice@192.168.28.51:5060</a>&gt;;q=;expires=3061;flags=0x0;cflags=0x40;socket=&lt;udp:<a href="http://8.8.8.8:5060" target="_blank">8.8.8.8:5060</a>&gt;;methods=0x129F;received=&lt;sip:<a href="http://8.8.8.8:5060" target="_blank">8.8.8.8:5060</a>&gt;;user_agent=&lt;Linksys/PAP2T-3.1.15(LS)&gt;</div>

<div>&gt;</div><div>&gt; My situation.</div><div>&gt; 1. Alice calls to BOB.</div><div>&gt; 2. kamailio looks up in location table for BOBs registrations</div><div>&gt; 3. in DB there are two rows (two devices(linksys PAP2T and Blink(blink is</div>

<div>&gt; the second one)))</div><div>&gt; 4. kamailio send 3 INVITES ( linksys, blink and blink). Every INVITE has</div><div>&gt; different via.branch </div><div>&gt;      (Via: SIP/2.0/UDP 8.8.8.8;branch=z9hG4bKe2d7.009b1df2.1)</div>

<div>&gt;      (Via: SIP/2.0/UDP 8.8.8.8;branch=z9hG4bKe2d7.009b1df2.2)</div><div>&gt;      (Via: SIP/2.0/UDP 8.8.8.8;branch=z9hG4bKe2d7.009b1df2.3)</div><div>&gt; All my registrar parameters are set to default.</div><div>

&gt; Nothing is looping on interfaces.</div><div>&gt; I have no idea whether this is a bug or my missconfiguration.</div><div>&gt; Thanks for replies.</div><div>&gt; Kind regards,</div><div>&gt; Efelin Novak</div><div>&gt;</div>

</div></div><div>&gt; _______________________________________________</div><div>&gt; sr-dev mailing list</div><div>&gt; <a href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a></div><div>
&gt; <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a></div>
<div>&gt;</div><div>&gt;</div><div><br></div>
<br>_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
<br></blockquote></div><br></div>