<p></p>
Daniel-Constantin Mierla writes:<br>
<br>
> Also, maybe @juha-h can comment on this issue, being the initial<br>
> developer of these functions, to see what is the expected behaviour<br>
> and if there is an unwanted change in the last version.<br>
<br>
Version of tm README before mode param was added tells what the expected<br>
behavior of t_load_contacts() is:<br>
<br>
   Function t_load_contacts() removes all branches from the current<br>
   destination set and stores them into the XAVP whose name is configured<br>
   with the parameter contacts_avp.<br>
   ...<br>
   If the current destination set contains more than one branch, the<br>
   function sorts them according to increasing value of the q parameter<br>
   and then stores the branches in reverse order into the XAVP.<br>
<br>
   The q parameter of a branch contains a value from range 0-1.0 and it<br>
   expresses relative preference of the branch among all branches in the<br>
   destination set. The higher the q value the more preference the user<br>
   agent gave to the branch. Branches with higher q values will be tried<br>
   before branches with lower ones when serial forking takes place.<br>
<br>
If the behavior is not that anymore, there is a bug that needs to be<br>
fixed.<br>
<br>
<br>
<br>
<br>
<br>


<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-679083935">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJ2RCBCVYXJEEP2QUTSCJI5VANCNFSM4QFF6F4Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZIX43RGEZNSYT7ND7LSCJI5VA5CNFSM4QFF6F42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFB477HY.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-679083935",
"url": "https://github.com/kamailio/kamailio/issues/2449#issuecomment-679083935",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>