<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="en-FI" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello, <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’m quite new user with kamailio (heard first time about it a year ago and joined the list yesterday) and now wondering how the xavp_dst should work.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I had read from the documentation that <o:p>
</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-GB">”</span><span style="mso-fareast-language:EN-GB">The first XAVP is the current selected destination.</span><span lang="EN-US" style="mso-fareast-language:EN-GB">”<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I use ds_select_dst with alg 13. And my kamailio version is kamailio 5.5.3 (x86_64/linux)<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">So when my dispatcher list is like (I have also tried to differ the priority value like 10 and 1, but doesn’t make difference)<o:p></o:p></span></p>
<p class="MsoNormal">10 sip:<span lang="EN-US">1.2.3.4</span>;transport=tcp 10 1 type=<span lang="EN-US">type1<o:p></o:p></span></p>
<p class="MsoNormal">1<span lang="EN-US">0</span> sip:<span lang="EN-US">4.3.2.1</span>;transport=tcp 10 1 type=<span lang="EN-US">type2<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">If one of the destinations fails (dx/ip), and it happens to be the one with higher priority or the one that just gets higher position in the dispatcher list if the prio Is equal.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">My xavp_</span>$xavp(dsdst=>attrs) <span lang="EN-US">
get null value. And, if I try to seek </span>$(xavp(dsdst[<span lang="EN-US">0</span>]=>attrs)
<span lang="EN-US">or </span>$(xavp(dsdst[<span lang="EN-US">1</span>]=>attrs) <span lang="EN-US">
I also got nothing. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">If both destinations are up with equal priority, it selects them with round-robin, and the xavp_</span>$xavp(dsdst=>attrs)
<span lang="EN-US">has the type value of the selected destination as expected, also the
</span>$(xavp(dsdst[<span lang="EN-US">0</span>]=>attrs) <span lang="EN-US">or </span>
$(xavp(dsdst[<span lang="EN-US">1</span>]=>attrs) <span lang="EN-US">contains the destinations so that the selected is 0 and the other is at position 1.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The $du is updated as I expect so if one fails the other one is selected always, why the xavp_dst isn’t working same way, or am I missing something?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">If needed I’ll try to provide more information,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks already in advance<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-Pyry<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>