<p></p>
<p>You said "I am trying to FIX the current implementation", which implies there is a problem, a bug. Initial developer maybe thought about more that you think, just had to implement based on the requirements at that moment and they may still be valid for specific use cases even after 16 years, given that the code was changed. Anyhow, let's not go around the words and focus on the technical parts.</p>
<p>I didn't say what you propose as a new distribution logic is not useful for some cases, I proposed to do a new algorithm inspiring from the 7. The module was introduced before variables, once they were available, algorithm 7 can offer same like hashing over callid or other attributes of the sip message. There are clear benefits of this approach, some I listed in previous comments.</p>
<p>If you look in the code where the algorithm 7 (DS_ALG_HASHPV) you can see how the value of the pv specified by modparam hash_pvar is received. If you get troubles sorting it out, let us know what you coded (post a diff), and we will try to assist.</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-649312998">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZOXL327T6VV4CAV5NDRYL4WXANCNFSM4OATJVEA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZKU7ROEHLERIOT7FT3RYL4WXA5CNFSM4OATJVEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOE2Z3VZQ.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-649312998",
"url": "https://github.com/kamailio/kamailio/pull/2363#issuecomment-649312998",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>