[OpenSIPS-Users] OpenSIPS Equivalent to Kamailio's cfg_get

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Jan 5 08:55:36 UTC 2023


Hi David,

Are these cfg values static during runtime? if so, you can simple use 
the defines provided by the template'ing support -> 
https://www.opensips.org/Documentation/Templating-Config-Files-3-2

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
OpenSIPS Bootcamp 5-16 Dec 2022, online
   https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/

On 1/4/23 12:07 AM, David Villasmil wrote:
> Hey Bodgan!
>
> It’s used to dynamically set constants, I.e.: a variable you use 
> throughout the script.
>
> You can set it initially like
>
> Myvar = 3
>
> Then via cli you can change it.
>
> I finally did it in opensips with cfgutils, if there’s a better way to 
> do it, please let me know.
>
> Many thanks!
>
> David
>
> On Tue, 3 Jan 2023 at 20:12, Bogdan-Andrei Iancu <bogdan at opensips.org 
> <mailto:bogdan at opensips.org>> wrote:
>
>     Hi David,
>
>     not sure what this cfg_get is suppose to do :(
>
>     Regards,
>
>     Bogdan-Andrei Iancu
>
>     OpenSIPS Founder and Developer
>        https://www.opensips-solutions.com  <https://www.opensips-solutions.com>
>     OpenSIPS Bootcamp 5-16 Dec 2022, online
>        https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/  <https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/>
>
>     On 12/27/22 1:35 PM, David Villasmil wrote:
>>     Hello folks,
>>
>>     Is there such a thing? cfgutils seems to be an alternative, but
>>     looks like too much for such a simple thing.
>>
>>     Regards,
>>
>>     David Villasmil
>>     email: david.villasmil.work at gmail.com
>>     <mailto:david.villasmil.work at gmail.com>
>>     phone: +34669448337
>>
>>     _______________________________________________
>>     Users mailing list
>>     Users at lists.opensips.org  <mailto:Users at lists.opensips.org>
>>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users  <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
>
> -- 
> Regards,
>
> David Villasmil
> email: david.villasmil.work at gmail.com 
> <mailto:david.villasmil.work at gmail.com>
> phone: +34669448337

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20230105/4a1773bc/attachment.html>


More information about the Users mailing list