<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I have a problem when trying to add an advertised address in
      Kamailio 5.4.2</p>
    <p><br>
    </p>
    <p>we have a checf config that is populating various variable. some
      of these are for the Listeners</p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p>we have this working and Im getting all protocols for the
      listeners based on the non _TLS Vars but the TLS config is trying
      to resolve ADVERTISE_NAT_ADDRESS_TLS. If I try and quote the
      variable "ADVERTISE_NAT_ADDRESS_TLS" id get an error saying
      1.2.3.4:5061 is not resolvable</p>
    <p><br>
    </p>
    <p>therefroe I have udp,tcp and tls listeners all on the default
      ports where i need the tls on port 5061 ans not 5060<br>
    </p>
    <p><br>
    </p>
    <p>listen LISTEN_EXTERNAL_SOCKET advertise ADVERTISE_NAT_ADDRESS
      name = "ext"</p>
    <p>listen LISTEN_INTERNAL_SOCKET  name = "int"</p>
    <p>listen LISTEN_EXTERNAL_SOCKET_TLS advertise  name = "ext-tls"</p>
    <p>listen LISTEN_INTERNAL_SOCKET_TLS  name = "int-tls"</p>
    <p>the Vars are defined as <br>
    </p>
    <p class="MsoNormal">#!define TOPO_NAT</p>
    <p class="MsoNormal">#!substdef
      "!LISTEN_EXTERNAL_SOCKET!10.10.10.10:5060!g"</p>
    <p class="MsoNormal">#!substdef
      "!LISTEN_INTERNAL_SOCKET!10.10.10.10:5080!g"</p>
    <p class="MsoNormal">#!substdef
      "!ADVERTISE_NAT_ADDRESS!1.2.3.4:5060!g"</p>
    <p class="MsoNormal"> </p>
    <p class="MsoNormal">#!define ENABLE_TLS</p>
    <p class="MsoNormal">#!define TLS_CONFIG_FILE "chef-managed/tls.cfg"</p>
    <p class="MsoNormal">#!substdef
      "!LISTEN_EXTERNAL_SOCKET_TLS!tls:10.225.73.16:5061!g"</p>
    <p class="MsoNormal">#!substdef
      "!LISTEN_INTERNAL_SOCKET_TLS!tls:10.225.73.16:5061!g"</p>
    <p>#!substdef "!ADVERTISE_NAT_ADDRESS_TLS!1.2.3.4:5061!g"</p>
    <p>REgards,</p>
    <p><br>
    </p>
    <p>Richard<br>
    </p>
    <br>
  </body>
</html>