<div dir="ltr"><div dir="ltr">On Mon, Apr 27, 2020 at 5:49 AM Learn&Use <<a href="mailto:office@learnanduse.at">office@learnanduse.at</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi guys,<br>
<br>
sorry just a simple question which i can’t find an answer online.. if i have multiple contacts listed in one aor section in pjsip.conf and have quality on which of the contacts will be used if both contacts are reachable?<br>
<br>
ie:<br>
[trunk]<br>
type = aor<br>
contact = <a href="http://sip:test@domain1.com:5061" rel="noreferrer" target="_blank">sip:test@domain1.com:5061</a><br>
contact = <a href="http://sip:test@domain2.com:5061" rel="noreferrer" target="_blank">sip:test@domain2.com:5061</a><br>
qualify-frequency = 30<br>
<br>
is it round-robin, random, in the order of the config file or the lowest RTT?<br></blockquote><div><br></div><div>It's semi-random.</div><div><br></div><div>From what I can tell it appears it will choose the "first" reachable contact (includes dynamic and static contacts) it knows about. I put "first" in quotes though because the contacts are put into an unsorted container, and then the "first" reachable contact in the container is used. So depending on how a particular contact is hashed, and stored in the container affects its location in said container.</div><div><br></div><div>If all you have are static contacts then the same one should be chosen each time. However when including dynamic contacts it's possible (once registered, and reachable) it could become the one used.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
cheers,<br>
<br>
Roland<br><br></blockquote><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Kevin Harwell<div>Software Developer</div><div>Sangoma Technologies<br><div>Check us out at: <a href="https://sangoma.com/" target="_blank">https://sangoma.com</a> & <a href="https://asterisk.org" target="_blank">https://asterisk.org</a></div></div></div></div></div></div></div></div></div></div>