<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Hi,</font><br>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
<a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
<div class="moz-cite-prefix">On 20.03.2025 09:17, Sasmita Panda
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CALf-Q46ZGG6BvWA4uW=v+j-mjWyiT9J3kw1g8T0iaYTPuguUrg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi All , </div>
<div><br>
</div>
<div>I am using opensips 3.2 . For a particular username I am
doing branch only lookup like below <b> lookup("location",
"B") . </b></div>
<div><b><br>
</b></div>
<div><b> After doing a lookup , I am calculating the queue
value of each branch and then trying to deliver calls one by
one . </b></div>
<div><b><br>
</b></div>
<div><b> Here the first call goes to the branch with higher
q value . But when the q value of 2 branches is the same to
which branch will the call go first ?</b></div>
</div>
</blockquote>
as per RFC, you should do parallel forking to branches with the same
q, but at the end of the day, it is up 2 you<br>
<blockquote type="cite"
cite="mid:CALf-Q46ZGG6BvWA4uW=v+j-mjWyiT9J3kw1g8T0iaYTPuguUrg@mail.gmail.com">
<div dir="ltr">
<div><b><br>
</b></div>
<div><b> I am seeing randomness on this (with q value same
for 2 users ) . But I want to fix the behaviour , i.e. the
call should go in FIFO order . i.e. the user who registers
first should get the call first . <br>
</b></div>
</div>
</blockquote>
if the branches have the same q, how do you want to order them ?
registration time? this will be inconsistent as during
re-registration, the order of those 2 branches will keep swap.
Nevertheless, check<br>
<a class="moz-txt-link-freetext" href="https://opensips.org/html/docs/modules/3.4.x/usrloc.html#param_desc_time_order">https://opensips.org/html/docs/modules/3.4.x/usrloc.html#param_desc_time_order</a><br>
<blockquote type="cite"
cite="mid:CALf-Q46ZGG6BvWA4uW=v+j-mjWyiT9J3kw1g8T0iaYTPuguUrg@mail.gmail.com">
<div dir="ltr">
<div><b><br>
</b></div>
<div><b> How can I achieve this ? </b></div>
<div><br>
</div>
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr"><b><i>Thanks & Regards</i></b>
<div><i>Sasmita Panda</i></div>
<div><i>Senior Network Testing and Software Engineer</i></div>
<div><i>3CLogic , ph:07827611765</i></div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>