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

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Jan 5 09:53:43 UTC 2023


OK, so they are changeable at runtime (via MI I guess). In this case 
there is 99% similarity with the shvals from cfgutils.

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/5/23 11:47 AM, David Villasmil wrote:
> No, that’s the thing. I want to be able to change them without 
> restarting opensips
>
> On Thu, 5 Jan 2023 at 09:55, Bogdan-Andrei Iancu <bogdan at opensips.org 
> <mailto:bogdan at opensips.org>> wrote:
>
>     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
>     <https://www.opensips.org/Documentation/Templating-Config-Files-3-2>
>
>     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 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
>
> -- 
> 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/8234185c/attachment-0001.html>


More information about the Users mailing list