<p></p>
<p>Not using t_load_contacts() was not giving me a chance earlier to investigate deeply, but finally I got some time and I went on troubleshooting by diff-ing the code and behaviour between the versions and came up with the commit referenced above.</p>
<p>The result of debug messages now looks like in the branch 5.3, based on the tests done before with output posted in one of my comments above, so I haven't spent more time on understanding the changes introduced by proportional mode with the use of q_index field.</p>
<p>Now it prints:</p>
<pre><code> 1(5011) WARNING: <script>: Route order:
 1(5011) INFO: <script>: ==== 1: sip:101@9.9.9.9
 1(5011) INFO: <script>: ==== 2: sip:101@8.8.8.8
 1(5011) INFO: <script>: ==== 3: sip:101@7.7.7.7
 1(5011) INFO: <script>: ==== 4: sip:101@6.6.6.6
 1(5011) INFO: <script>: ==== 5: sip:101@5.5.5.5
 1(5011) INFO: <script>: ==== 6: sip:101@4.4.4.4
 1(5011) INFO: <script>: ==== 7: sip:101@3.3.3.3
 1(5011) INFO: <script>: ==== 8: sip:101@2.2.2.2
 1(5011) INFO: <script>: ==== 9: sip:101@1.1.1.1
 1(5011) INFO: <script>: ==== 10: sip:101@127.0.0.1
</code></pre>
<p>The patch is only in master branch for now.</p>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/cleung-tpn/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cleung-tpn">@cleung-tpn</a> -- if you can test and confirm works as you expect, then I will backport to branch 5.3.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2449#issuecomment-729673535">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJYY5WWRASCNHML4X3SQPDAVANCNFSM4QFF6F4Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZI4AQ35I6ZYL4J5O33SQPDAVA5CNFSM4QFF6F42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFN666PY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2449#issuecomment-729673535",
"url": "https://github.com/kamailio/kamailio/issues/2449#issuecomment-729673535",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>