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

David Villasmil david.villasmil.work at gmail.com
Thu Jan 5 10:11:00 UTC 2023


Great; thanks for confirming this

On Thu, 5 Jan 2023 at 10:53, Bogdan-Andrei Iancu <bogdan at opensips.org>
wrote:

> 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>
> 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
>>
>> 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>
>> 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
>>> OpenSIPS Bootcamp 5-16 Dec 2022, online
>>>   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
>>> phone: +34669448337
>>>
>>> _______________________________________________
>>> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>> --
>> Regards,
>>
>> David Villasmil
>> email: david.villasmil.work at gmail.com
>> phone: +34669448337
>>
>>
>> --
> Regards,
>
> David Villasmil
> email: david.villasmil.work at gmail.com
> phone: +34669448337
>
>
> --
Regards,

David Villasmil
email: david.villasmil.work at gmail.com
phone: +34669448337
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20230105/c299c63b/attachment.html>


More information about the Users mailing list