<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>
      <blockquote type="cite">
        <pre>Serdar,

Have you tried to clean variables before calling new ds_select_domain(), 
that are using by dispatcher module failover?

Like 
<a href="https://kamailio.org/docs/modules/5.3.x/modules/dispatcher.html#dispatcher.p.xavp_dst">https://kamailio.org/docs/modules/5.3.x/modules/dispatcher.html#dispatcher.p.xavp_dst</a> 
and so on?

But as I got, you're saying, that calling ds_select_domain() with 
different setid's in a case of fail, not really fails, but using "old" 
available destinations from previous attempt?

Regards,
Igor
</pre>
      </blockquote>
    </p>
    <p>Igor, also thanks for your interest.</p>
    <p>
      <blockquote type="cite">
        <pre>Hello,

delete the xavps based on the names you set via modparams xavp_dst and
xavp_ctx.

Cheers,
Daniel</pre>
      </blockquote>
      I remove xavp value using "xavp_rm("_dsdst_")", i supposed that my
      problem was solved</p>
    <p> but in my other tests, i recognised that xavp_rm removed the
      first index of "xavp(_dsdst_)" not all previous
      destinations(indexes).</p>
    <p>after researching, i found a post at
      <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/pipermail/sr-users/2020-May/109192.html">https://lists.kamailio.org/pipermail/sr-users/2020-May/109192.html</a></p>
    <p>and i removed all ellements of list as below,<br>
    </p>
    <p>if(defined $xavp(_dsdst_)) {<br>
              while($xavp(_dsdst_[0]) != $null) {<br>
                  xlog("L_INFO", "--- Loaded Dispatchers --- Grp :
      $xavp(_dsdst_[0]=>grp)\n");<br>
                  xlog("L_INFO", "--- Loaded Dispatchers --- Uri :
      $xavp(_dsdst_[0]=>uri)\n");<br>
                  $xavp(_dsdst_[0]) = $null;<br>
              }<br>
      }</p>
    <p>it worked but i am not sure it is a best solution. Is there
      another simple way to delete all indexes of xavp?</p>
    <p>Best regards,</p>
    <p>Serdar<br>
    </p>
    <p><br>
    </p>
  </body>
</html>