Hello Sergey,Am I understanding you right, that you've defined a custom global variable with an empty value in the kamailio.cfg
and then want to set a string value to it and then by executing cfg.sets global var_name "" want to clear that value to be blank again?On Fri, Jun 11, 2021 at 4:31 PM Sergey Safarov <s.safarov@gmail.com> wrote:__________________________________________________________In Kamailio config I use empty global string variablelocal.trace_troubleshooting_net = "" descr "trace all SIP messages from given network"When I check variable value I get blank stringkamcmd cfg.get local trace_troubleshooting_netI can set new value[root@host]# kamcmd cfg.sets local trace_troubleshooting_net "2600::/48"
[root@host]# kamcmd cfg.get local trace_troubleshooting_net2600::/48Now I want to set the empty custom global variable using a commandkamcmd cfg.sets group trace_troubleshooting_net ""But get errorerror: 400 - error at parameter 2: expected string type but record doesn't match typeHow to properly set empty values?
Kamailio - Users Mailing List - Non Commercial Discussions
* sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
* https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--__________________________________________________________Arsen Semenov
Kamailio - Users Mailing List - Non Commercial Discussions
* sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
* https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users