<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>good to hear it works, thanks for the feedback, it may help the
      others looking for the same cases!</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 02.08.21 08:57, Serdar GÜÇLÜER
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:0e923876-384b-2a9c-b3ca-4b70f82cc697@netgsm.com.tr">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p>Hello Daniel,<br>
      </p>
      <p>I removed xavps using with xavp_rm and problem solved. Thanks
        for your helping</p>
      <p>Serdar</p>
      <p><br>
      </p>
      <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

On 30.07.21 11:14, Serdar GÜÇLÜER wrote:
><i> Hello all,
</i>><i>
</i>><i> I have a trouble that is related to the way of usage of dispatcher module.
</i>><i>
</i>><i> I am working with Kamailio 5.3.2 and using dispatcher module as load
</i>><i> balancer to route calls to the media gateways.
</i>><i>
</i>><i> My dispatching routes are below as simply,
</i>><i>
</i>><i> route[DISPATCH] {
</i>><i>         if(ds_select_domain("2", "4")) {
</i>><i>                 route(MYRELAY);
</i>><i>         } else {
</i>><i>                 send_reply("503","Service Unavailable - No MGW");
</i>><i>                 exit;
</i>><i>         }
</i>><i> }
</i>><i> route[MYRELAY] {
</i>><i>         t_on_failure("MYFAILURE");
</i>><i>         if(!t_relay()) {
</i>><i>                 sl_reply_error();
</i>><i>         }
</i>><i>         exit;
</i>><i> }
</i>><i> failure_route[MYFAILURE] {
</i>><i>         route(NATMANAGE);
</i>><i>         revert_uri();
</i>><i>         if (t_is_canceled()) {
</i>><i>                 exit;
</i>><i>         }
</i>><i>         if ($T_reply_code == 408 || $T_reply_code == 503) {
</i>><i>                 if(ds_next_domain()) {
</i>><i>                         route(MYRELAY);
</i>><i>                 } else {
</i>><i>                         send_reply("503","Service Unavailable");
</i>><i>                         exit;
</i>><i>                 }
</i>><i>         } else {
</i>><i>                 if(ds_select_domain("6", "4")) {
</i>><i>                         route(MYVMRELAY);
</i>><i>                 } else {
</i>><i>                         send_reply(486,"Busy");
</i>><i>                         exit;
</i>><i>                 }
</i>><i>         }
</i>><i> }
</i>><i> route[MYVMRELAY] {
</i>><i>         t_on_failure("MYVMFAILURE");
</i>><i>         if(!t_relay()) {
</i>><i>                 sl_reply_error();
</i>><i>         }
</i>><i>         exit;
</i>><i> }
</i>><i> failure_route[MYVMFAILURE] {
</i>><i>         route(NATMANAGE);
</i>><i>         revert_uri();
</i>><i>         if (t_is_canceled()) {
</i>><i>                 exit;
</i>><i>         }
</i>><i>         if(ds_next_domain()) {
</i>><i>                 route(MYVMRELAY);
</i>><i>         } else {
</i>><i>                 send_reply("503","Service Unavailable");
</i>><i>                 exit;
</i>><i>         }
</i>><i> }
</i>><i>
</i>><i>
</i>><i> I have multiple media gateways(setid=2) and voicemail
</i>><i> servers(setid=6). As can be seen from the configuration,
</i>><i> after first routing, for transaction reply code except 408 or 503, I
</i>><i> am routing call to the voicemail server using dispatcher.
</i>><i> In that phase, dispatcher module is remembering previously loaded
</i>><i> destinations that come from first ds_select_domain
</i>><i> and module try to route these destinations in the case that all
</i>><i> voicemail servers are unavailable.
</i>><i> So basically, I want to unload all destinations comes from previous
</i>><i> ds_select_domain.
</i>><i>
</i>><i> From the documentation, i tried ds_load_update and ds_load_unset
</i>><i> methods but not worked for me.
</i>><i>
</i>><i> Is there any way to overcome that problem or any right usages of these
</i>><i> methods.
</i>><i>
</i>><i> Thank you,
</i>><i>
</i>><i> Serdar
</i>><i>
</i>><i>
</i>><i> __________________________________________________________
</i>><i> Kamailio - Users Mailing List - Non Commercial Discussions
</i>><i>   * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" moz-do-not-send="true">sr-users at lists.kamailio.org</a>
</i>><i> Important: keep the mailing list in the recipients, do not reply only to the sender!
</i>><i> Edit mailing list options or unsubscribe:
</i>><i>   * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</i>
-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com" moz-do-not-send="true">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a></pre>
      </blockquote>
      <br>
      <div class="moz-signature">
        <div align="left"> </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a></pre>
  </body>
</html>