I have a problem when trying to add an advertised address in Kamailio 5.4.2
we have a checf config that is populating various variable. some of
these are for the Listeners
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
therefroe I have udp,tcp and tls listeners all on the default ports
where i need the tls on port 5061 ans not 5060
listen LISTEN_EXTERNAL_SOCKET advertise ADVERTISE_NAT_ADDRESS name = "ext"
listen LISTEN_INTERNAL_SOCKET name = "int"
listen LISTEN_EXTERNAL_SOCKET_TLS advertise name = "ext-tls"
listen LISTEN_INTERNAL_SOCKET_TLS name = "int-tls"
the Vars are defined as
#!define TOPO_NAT
#!substdef "!LISTEN_EXTERNAL_SOCKET!10.10.10.10:5060!g"
#!substdef "!LISTEN_INTERNAL_SOCKET!10.10.10.10:5080!g"
#!substdef "!ADVERTISE_NAT_ADDRESS!1.2.3.4:5060!g"
#!define ENABLE_TLS
#!define TLS_CONFIG_FILE "chef-managed/tls.cfg"
#!substdef "!LISTEN_EXTERNAL_SOCKET_TLS!tls:10.225.73.16:5061!g"
#!substdef "!LISTEN_INTERNAL_SOCKET_TLS!tls:10.225.73.16:5061!g"
#!substdef "!ADVERTISE_NAT_ADDRESS_TLS!1.2.3.4:5061!g"
REgards,
Richard