<p></p>
<p>When I realized the use of "use_default" flag I had trouble trying to fix the rehash in that case.</p>
<p>According to documentation:</p>
<p><a href="https://kamailio.org/docs/modules/4.3.x/modules/dispatcher.html#dispatcher.p.use_default" rel="nofollow">use_default</a></p>
<p><em>3.10. use_default (int)<br>
If the parameter is set to 1, the last address in destination set is used as a final option to send the request to.</em></p>
<p>But it's not the last address. It's the first one.  After dealing with my implementation I tried with official 5.3.3 and found the same behavior. It's the first one that is not used and reserved as default, in case no other destination is available.</p>
<p>It seems that for some reason the list of addresses are loaded in reverse order.</p>
<p>My implementation does not touch that, so it is still the first one.</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/pull/2363#issuecomment-645518982">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMIJFDFQ2XVJDD6TOLRXD5PBANCNFSM4OATJVEA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZKBG626EYF6V34NB3DRXD5PBA5CNFSM4OATJVEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEZ45NBQ.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/pull/2363#issuecomment-645518982",
"url": "https://github.com/kamailio/kamailio/pull/2363#issuecomment-645518982",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>