<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>maybe a good approach is to loop back the registrations to
      Kamailio via outbound proxy and then do the usual request routing
      using request_route block, where you can engage dispatcher and
      other modules to try to achieve what you need.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 30.01.21 10:07, Karsten Horsmann
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFArqsb7bBRKe47Zz8Ty88Av8VawkAKyqBWcg=4Em-jcBB8V8w@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto">
        <div>Hi Javier, </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Not knowing your config I could imagine that you
          can maybe use <br>
          <h3 dir="ltr" style="margin:1em
0px;padding:0px;line-height:1.417;color:rgb(32,33,36);font-family:roboto,sans-serif;background-color:rgb(255,255,255)"><code
              dir="ltr"
style="margin-bottom:1.143rem;border-width:1px;border-style:solid;border-color:rgb();border-radius:2px;background-color:rgb()">ds_next_dst()</code></h3>
          <div class="gmail_quote" dir="auto">
            <div dir="ltr" class="gmail_attr">In a while loop to iterate
              over all setid members of dispatcher. That's not tested
              and most people here would strongly suggest to use
              Kamailio as Registrar. </div>
            <div dir="ltr" class="gmail_attr"><br>
            </div>
            <div dir="ltr" class="gmail_attr">Or you try some
              configuration that spreads the registration around to your
              backends </div>
            <div dir="ltr" class="gmail_attr">Take a look at this
              thread </div>
            <div dir="ltr" class="gmail_attr"><br>
            </div>
            <div dir="ltr" class="gmail_attr"><a
href="http://sip-router.1086192.n5.nabble.com/MID-Registrar-Example-td192277.html#a192339"
                moz-do-not-send="true">http://sip-router.1086192.n5.nabble.com/MID-Registrar-Example-td192277.html#a192339</a><br>
            </div>
            <div dir="ltr" class="gmail_attr"><br>
            </div>
            <div dir="ltr" class="gmail_attr">Not sure if this works for
              you (due the path missing in asterisk 11 you mentioned)
              but maybe gives some inspiration. </div>
            <div dir="ltr" class="gmail_attr"><br>
            </div>
            <div dir="ltr" class="gmail_attr"><br>
            </div>
            <div dir="ltr" class="gmail_attr">Kind regards </div>
            <div dir="ltr" class="gmail_attr">Karsten Horsmann </div>
            <div dir="ltr" class="gmail_attr"><br>
            </div>
            <div dir="ltr" class="gmail_attr">Javier Valencia <<a
                href="mailto:jv@voiper.es" rel="noreferrer noreferrer
                noreferrer" target="_blank" moz-do-not-send="true">jv@voiper.es</a>>
              schrieb am Mi., 27. Jan. 2021, 11:34:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div>
                <p><font face="SF Pro Display">Hi there!</font></p>
                <p>Go ahead I apologize for my English.</p>
                <p>I have a Kamailio 5.4 with the DISPATCHER module and
                  UAC enabled (for remote REGISTER), the DISPATCHER has
                  several SETIDs, and they have one or more Asterisk
                  balanced behind it.<br>
                  <br>
                  In Kamalio script, when an endpoint does REGISTER, I
                  enable the REGISTER of the UAC module. And when it
                  expires or expires=0 I disable the REGISTER in the UAC
                  module.<br>
                  <br>
                  In the UACREG table in the database, L_UUID (unique
                  key), L_USERNAME, R_USERNAME, and AUTH_USERNAME have
                  the same value. For example CST100EXT100.<br>
                  <br>
                  Knowing that the DISPATCHER and UAC modules have no
                  relationship, but that when a SETID has several
                  balanced Asterisks, how can I make the UAC module send
                  the REGISTER to all the Asterisks of a SETID?<br>
                  <br>
                  Clarifications;<br>
                  <br>
                  1.- I cannot update the Asterisk, which are currently
                  in version 11. They do not support PATH.<br>
                  <br>
                  2.- I can modify the content of the UACREG table so
                  that l_uuid has a suffix '_X'.<br>
                  <br>
                  3.- Call jsonrpc_exec several times to enable the
                  REGISTER in the UAC module.<br>
                </p>
                <p>(diff emulated)<br>
                  < jsonrpc_exec ('{"id": 1, "jsonrpc": "2.0",
                  "method": "uac.reg_enable", "params": ["l_uuid", "s: $
                  au"]}') ;<br>
                  > jsonrpc_exec ('{"id": 1, "jsonrpc": "2.0",
                  "method": "uac.reg_enable", "params": ["l_uuid", "s: $
                  au_1"]}') ;<br>
                  > jsonrpc_exec ('{"id": 1, "jsonrpc": "2.0",
                  "method": "uac.reg_enable", "params": ["l_uuid", "s: $
                  au_2"]}') ;<br>
                  > jsonrpc_exec ('{"id": 1, "jsonrpc": "2.0",
                  "method": "uac.reg_enable", "params": ["l_uuid", "s: $
                  au_3"]}') ;<br>
                  <br>
                  But I want to know if there is any more elegant way to
                  do this.</p>
                <p>Cheers, JV<br>
                </p>
                <div>-- <br>
                  <table style="background-color:#ffffff" width="100%"
                    cellspacing="0" cellpadding="0" border="0">
                    <tbody>
                      <tr>
                        <td valign="top">
                          <table width="100%" cellspacing="0"
                            cellpadding="0" border="0" align="center">
                            <tbody>
                              <tr>
                                <td valign="top" align="center">
                                  <table width="700" cellspacing="0"
                                    cellpadding="0" border="0"
                                    bgcolor="#ffffff" align="left">
                                    <tbody>
                                      <tr>
                                        <td valign="top">
                                          <table width="660"
                                            cellspacing="0"
                                            cellpadding="0" border="0"
                                            align="left">
                                            <tbody>
                                              <tr>
                                                <td valign="middle">
                                                  <table cellspacing="0"
                                                    cellpadding="0"
                                                    border="0"
                                                    align="left">
                                                    <tbody>
                                                      <tr>
                                                        <td valign="top"
                                                          align="left">
                                                          <table
                                                          cellspacing="0"
cellpadding="0" border="0" align="left">
                                                          <tbody>
                                                          <tr>
                                                          <td
                                                          width="auto"
                                                          valign="top">
                                                          <table
                                                          cellspacing="0"
cellpadding="0" border="0" align="left">
                                                          <tbody>
                                                          <tr>
                                                          <td>
                                                          <table
                                                          cellspacing="0"
cellpadding="0" border="0" align="left">
                                                          <tbody>
                                                          <tr>
                                                          <td
                                                          style="padding-top:1px;padding-right:5px"
valign="middle" align="center"> <a href="http://www.voiper.es/"
                                                          rel="noreferrer
                                                          noreferrer
                                                          noreferrer
                                                          noreferrer"
                                                          target="_blank"
moz-do-not-send="true"> <img
                                                          src="cid:part1.0C222FBB.B14504BC@voiper.es"
style="max-width:250px" alt="Logo" moz-do-not-send="true" width="250"
                                                          vspace="0"
                                                          hspace="0"
                                                          border="0"> </a>
                                                          </td>
                                                          </tr>
                                                          </tbody>
                                                          </table>
                                                          </td>
                                                          </tr>
                                                          </tbody>
                                                          </table>
                                                          </td>
                                                          </tr>
                                                          </tbody>
                                                          </table>
                                                        </td>
                                                        <td valign="top"
                                                          align="left">
                                                          <table
                                                          cellspacing="0"
cellpadding="0" border="0" align="left">
                                                          <tbody>
                                                          <tr>
                                                          <td
                                                          style="border-left:1px
                                                          solid
                                                          #000000;padding-left:5px"
                                                          width="auto"
                                                          valign="top">
                                                          <table
                                                          cellspacing="0"
cellpadding="0" border="0" align="left">
                                                          <tbody>
                                                          <tr>
                                                          <td>
                                                          <table
                                                          cellspacing="0"
cellpadding="0" border="0" align="left">
                                                          <tbody>
                                                          <tr>
                                                          <td
                                                          style="font-size:13px;line-height:15px;font-family:'century
gothic',Trebuchet MS,Comic Sans
MS,cursive,Verdana,Tahoma,sans-serif;color:#000000;font-weight:300;text-align:left">
                                                          <span
style="font-weight:700;font-size:14px;color:#000000;text-transform:uppercase">
                                                          Javier
                                                          Valencia </span>
                                                          | CTO <br>
                                                          Centro de
                                                          Negocios
                                                          Martín Buendía
                                                          <br>
                                                          Camino de las
                                                          Cañadas, nº
                                                          1C, Portal 1,
                                                          2ºG <br>
                                                          29649 Mijas
                                                          (Málaga) </td>
                                                          </tr>
                                                          </tbody>
                                                          </table>
                                                          </td>
                                                          </tr>
                                                          <tr>
                                                          <td
                                                          style="padding-top:5px"
                                                          width="auto"
                                                          valign="top">
                                                          <table
                                                          cellspacing="0"
cellpadding="0" border="0" align="left">
                                                          <tbody>
                                                          <tr>
                                                          <td
                                                          style="padding-right:4px"
                                                          align="left">
                                                          <img
                                                          src="cid:part3.F96EA501.B97E5BB8@voiper.es"
                                                          alt="#"
                                                          style="display:block!important;max-width:14px"
moz-do-not-send="true" width="14" vspace="0" hspace="0" height="14"
                                                          border="0"> </td>
                                                          <td
                                                          style="font-size:13px;font-family:'century
gothic',Verdana,Tahoma,Lucida
Grande,Helvetica,sans-serif;text-align:left;color:#000000;font-weight:300"
                                                          width="auto"
                                                          valign="left"
                                                          align="left">
                                                          <a
                                                          href="tel:951562080"
style="text-decoration:none;color:#000000" rel="noreferrer noreferrer
                                                          noreferrer
                                                          noreferrer"
                                                          target="_blank"
moz-do-not-send="true">951562080 (T)</a> | <a href="tel:687486759"
                                                          style="text-decoration:none;color:#000000"
rel="noreferrer noreferrer noreferrer noreferrer" target="_blank"
                                                          moz-do-not-send="true">687486759
                                                          (M)</a> </td>
                                                          </tr>
                                                          <tr>
                                                          <td
                                                          style="padding-right:4px"
                                                          align="left">
                                                          <img
                                                          src="cid:part6.ED82AB10.E574EE30@voiper.es"
                                                          alt="#"
                                                          style="display:block!important;max-width:14px"
moz-do-not-send="true" width="14" vspace="0" hspace="0" height="14"
                                                          border="0"> </td>
                                                          <td
                                                          style="font-size:13px;font-family:'century
gothic',Verdana,Tahoma,Lucida
Grande,Helvetica,sans-serif;text-align:left;color:#000000;font-weight:300"
                                                          width="auto"
                                                          valign="left"
                                                          align="left">
                                                          <a
                                                          href="http://www.voiper.es/"
style="text-decoration:none;color:#000000" rel="noreferrer noreferrer
                                                          noreferrer
                                                          noreferrer"
                                                          target="_blank"
moz-do-not-send="true"> www.voiper.es </a> </td>
                                                          </tr>
                                                          </tbody>
                                                          </table>
                                                          </td>
                                                          </tr>
                                                          </tbody>
                                                          </table>
                                                          </td>
                                                          </tr>
                                                          </tbody>
                                                          </table>
                                                        </td>
                                                      </tr>
                                                    </tbody>
                                                  </table>
                                                </td>
                                              </tr>
                                            </tbody>
                                          </table>
                                        </td>
                                      </tr>
                                    </tbody>
                                  </table>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                  <hr style="color:#888" size="1" noshade="noshade">
                  <pre>AVISO LEGAL
-----------

Este mensaje contiene información confidencial destinada para ser leída
exclusivamente por el destinatario. Queda prohibida la reproducción,
publicación, divulgación, total o parcial del mensaje así como el uso no
autorizados por el emisor. En caso de recibir el mensaje por error, se ruega
su comunicación al remitente lo antes posible. Por favor, indique
inmediatamente si usted o su empresa no aceptan comunicaciones de este tipo
por Internet.

Las opiniones, conclusiones y demás información incluida en este mensaje que
no esté relacionada con asuntos profesionales de SMART RECARGAS, S.L, se
entenderá que nunca se ha dado, ni está respaldado por el mismo.

Responsable del Tratamiento de Datos
------------------------------------
SMART RECARGAS , SL
Camino de las Cañadas, 1C PORTAL 1 2º G
29651 MIJAS COSTA (MALAGA)
</pre>
                </div>
              </div>
              _______________________________________________<br>
              Kamailio (SER) - Users Mailing List<br>
              <a href="mailto:sr-users@lists.kamailio.org"
                rel="noreferrer noreferrer noreferrer noreferrer"
                target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
              <a
                href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
                rel="noreferrer noreferrer noreferrer noreferrer
                noreferrer" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
            </blockquote>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<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>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
  </body>
</html>