<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <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 class="moz-signature">-- <br>
      <style type="text/css">
        img { border: none }
        .ii a[href] { color: #FFFFFF; text-decoration: none; }
</style>
      <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 class="container" width="700"
                        cellspacing="0" cellpadding="0" border="0"
                        bgcolor="#ffffff" align="left">
                        <tbody>
                          <tr>
                            <td valign="top">
                              <table class="full-width" width="660"
                                cellspacing="0" cellpadding="0"
                                border="0" align="left">
                                <tbody>
                                  <tr>
                                    <td valign="middle">
                                      <table class="container2"
                                        cellspacing="0" cellpadding="0"
                                        border="0" align="left">
                                        <tbody>
                                          <tr>
                                            <td valign="top"
                                              align="left">
                                              <table class="container"
                                                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/"> <img
src="cid:part1.0C222FBB.B14504BC@voiper.es" style="max-width:250px;"
                                                          alt="Logo"
                                                          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 class="container"
                                                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;"
                                                          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;">951562080 (T)</a> | <a
                                                          href="tel:687486759"
style="text-decoration: none; color: #000000;">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;"
                                                          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;"> 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>
  </body>
</html>