[SR-Users] set empty custom global variable

Sergey Safarov s.safarov at gmail.com
Fri Jun 11 13:29:47 CEST 2021

In Kamailio config I use empty global string variable
local.trace_troubleshooting_net = "" descr "trace all SIP messages from
given network"

When I check variable value I get blank string
kamcmd cfg.get local trace_troubleshooting_net

I can set new value
[root at host]# kamcmd cfg.sets local trace_troubleshooting_net "2600::/48"
[root at host]# kamcmd cfg.get local trace_troubleshooting_net

Now I want to set the empty custom  global variable using a command
kamcmd cfg.sets group trace_troubleshooting_net ""
But get error
error: 400 - error at parameter 2: expected string type but record doesn't
match type

How to properly set empty values?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210611/26c60f8e/attachment.htm>

More information about the sr-users mailing list