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 <[email protected] <mailto:[email protected]>> 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: [email protected]
    <mailto:[email protected]>
    phone: +34669448337

    _______________________________________________
    Users mailing list
    [email protected]  <mailto:[email protected]>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users  
<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>

--
Regards,

David Villasmil
email: [email protected] <mailto:[email protected]>
phone: +34669448337

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to