<div dir="ltr">Or you could use a sane and legible templating language. I like the look of consul-template, but there are many others out there as the article suggests.. like Jinja2 or ERB.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 10 Feb 2021 at 00:00, Johan De Clercq <<a href="mailto:Johan@democon.be">Johan@democon.be</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Interesting, speaking for myself, it is absolutely team that I add m4 support. <br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op di 9 feb. 2021 om 11:35 schreef Liviu Chircu <<a href="mailto:liviu@opensips.org" target="_blank">liviu@opensips.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 09.02.2021 05:53, Dinesh Krishnamurthy via Users wrote:<br>
> For example i would need to keep the IP Address/Port of the API <br>
> Gateway which i communicate via rest_get without hardcoding as they <br>
> would change based on the environment i am working with i.e.. staging, <br>
> dev or production<br>
><br>
> Please advise the way to do this.<br>
<br>
Hi,<br>
<br>
Sounds to me like your opensips.cfg file needs templating. If you are <br>
using a 3.0 or newer OpenSIPS, this process is even further simplified, <br>
as OpenSIPS natively integrates with any preprocessor that's out there. <br>
See this guide [1] for more details.<br>
<br>
Regards,<br>
<br>
[1]: <a href="https://www.opensips.org/Documentation/Templating-Config-Files-3-2" rel="noreferrer" target="_blank">https://www.opensips.org/Documentation/Templating-Config-Files-3-2</a><br>
<br>
-- <br>
Liviu Chircu<br>
<a href="http://www.twitter.com/liviuchircu" rel="noreferrer" target="_blank">www.twitter.com/liviuchircu</a> | <a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">www.opensips-solutions.com</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>