Re: [OpenSIPS-Users] Retrieving parameters from file

2021-02-09 Thread Johan De Clercq
Gerwin, I will have a look.

Outlook voor iOS<https://aka.ms/o0ukef> downloaden

Van: Users  namens Gerwin van de Steeg 

Verzonden: Wednesday, February 10, 2021 5:26:10 AM
Aan: OpenSIPS users mailling list 
Onderwerp: Re: [OpenSIPS-Users] Retrieving parameters from file

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.

On Wed, 10 Feb 2021 at 00:00, Johan De Clercq 
mailto:jo...@democon.be>> wrote:
Interesting, speaking for myself, it is absolutely team that I add m4 support.


Op di 9 feb. 2021 om 11:35 schreef Liviu Chircu 
mailto:li...@opensips.org>>:
On 09.02.2021 05:53, Dinesh Krishnamurthy via Users wrote:
> For example i would need to keep the IP Address/Port of the API
> Gateway which i communicate via rest_get without hardcoding as they
> would change based on the environment i am working with i.e.. staging,
> dev or production
>
> Please advise the way to do this.

Hi,

Sounds to me like your opensips.cfg file needs templating. If you are
using a 3.0 or newer OpenSIPS, this process is even further simplified,
as OpenSIPS natively integrates with any preprocessor that's out there.
See this guide [1] for more details.

Regards,

[1]: https://www.opensips.org/Documentation/Templating-Config-Files-3-2

--
Liviu Chircu
www.twitter.com/liviuchircu<http://www.twitter.com/liviuchircu> | 
www.opensips-solutions.com<http://www.opensips-solutions.com>


___
Users mailing list
Users@lists.opensips.org<mailto:Users@lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
___
Users mailing list
Users@lists.opensips.org<mailto:Users@lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Retrieving parameters from file

2021-02-09 Thread Gerwin van de Steeg
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.

On Wed, 10 Feb 2021 at 00:00, Johan De Clercq  wrote:

> Interesting, speaking for myself, it is absolutely team that I add m4
> support.
>
>
> Op di 9 feb. 2021 om 11:35 schreef Liviu Chircu :
>
>> On 09.02.2021 05:53, Dinesh Krishnamurthy via Users wrote:
>> > For example i would need to keep the IP Address/Port of the API
>> > Gateway which i communicate via rest_get without hardcoding as they
>> > would change based on the environment i am working with i.e.. staging,
>> > dev or production
>> >
>> > Please advise the way to do this.
>>
>> Hi,
>>
>> Sounds to me like your opensips.cfg file needs templating. If you are
>> using a 3.0 or newer OpenSIPS, this process is even further simplified,
>> as OpenSIPS natively integrates with any preprocessor that's out there.
>> See this guide [1] for more details.
>>
>> Regards,
>>
>> [1]: https://www.opensips.org/Documentation/Templating-Config-Files-3-2
>>
>> --
>> Liviu Chircu
>> www.twitter.com/liviuchircu | www.opensips-solutions.com
>>
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Retrieving parameters from file

2021-02-09 Thread Johan De Clercq
Interesting, speaking for myself, it is absolutely team that I add m4
support.


Op di 9 feb. 2021 om 11:35 schreef Liviu Chircu :

> On 09.02.2021 05:53, Dinesh Krishnamurthy via Users wrote:
> > For example i would need to keep the IP Address/Port of the API
> > Gateway which i communicate via rest_get without hardcoding as they
> > would change based on the environment i am working with i.e.. staging,
> > dev or production
> >
> > Please advise the way to do this.
>
> Hi,
>
> Sounds to me like your opensips.cfg file needs templating. If you are
> using a 3.0 or newer OpenSIPS, this process is even further simplified,
> as OpenSIPS natively integrates with any preprocessor that's out there.
> See this guide [1] for more details.
>
> Regards,
>
> [1]: https://www.opensips.org/Documentation/Templating-Config-Files-3-2
>
> --
> Liviu Chircu
> www.twitter.com/liviuchircu | www.opensips-solutions.com
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Retrieving parameters from file

2021-02-09 Thread Liviu Chircu

On 09.02.2021 05:53, Dinesh Krishnamurthy via Users wrote:
For example i would need to keep the IP Address/Port of the API 
Gateway which i communicate via rest_get without hardcoding as they 
would change based on the environment i am working with i.e.. staging, 
dev or production


Please advise the way to do this.


Hi,

Sounds to me like your opensips.cfg file needs templating. If you are 
using a 3.0 or newer OpenSIPS, this process is even further simplified, 
as OpenSIPS natively integrates with any preprocessor that's out there.  
See this guide [1] for more details.


Regards,

[1]: https://www.opensips.org/Documentation/Templating-Config-Files-3-2

--
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Retrieving parameters from file

2021-02-08 Thread Dinesh Krishnamurthy via Users
Hi,
I wanted to retrieve specific values from a file and use that in my 
opensips.cfg script.
For example i would need to keep the IP Address/Port of the API Gateway which i 
communicate via rest_get without hardcoding as they would change based on the 
environment i am working with i.e.. staging, dev or production
Please advise the way to do this. 
Thank you,DK___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users