<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">You can pass in TLS_PORT and TLS_IP as defines using kamailio startup option -A TLS_IP=xxx -A TLS_PORT=xxxx but to my knowledge you can’t otherwise dynamically bind to IPs/Ports once kamailio has started.</div><div class=""><br class=""></div><div class="">Blessings,</div><div class="">—</div><div class="">Daniel Donoghue</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 13 Dec 2020, at 15:19, Syed Shahryar <<a href="mailto:syedshahryar@gmail.com" class="">syedshahryar@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">This is a generic question about using environment variables in a config file.<div class=""><br class=""></div><div class="">If I want to use below where <font face="monospace" class="">TLS_IP</font> itself is a constant defined somewhere else. TLS_IP might be set via an env variable as well.</div><div class=""><br class=""></div><div class=""><font face="monospace" class="">#!define TLS_TO_LISTEN tls:TLS_IP:$env(TLS_PORT)<br clear="all" class=""></font><div class=""><br class=""></div><div class="">Will that work? I see syntax errors and other weird issues. What's the right syntax?</div>-- <br class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class="">--<br class="">This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. Email transmission cannot be guaranteed to be secure or error-free, as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender, therefore, does not accept liability for any errors or omissions in the contents of this message which arise as a result of email transmission. If verification is required, please request a hard-copy version.<br class=""></div></div></div></div></div></div>
_______________________________________________<br class="">Kamailio (SER) - Users Mailing List<br class=""><a href="mailto:sr-users@lists.kamailio.org" class="">sr-users@lists.kamailio.org</a><br class="">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users<br class=""></div></blockquote></div><br class=""></body></html>