<div dir="ltr"><div>Hello Sergey,</div><div><br></div>Am I understanding you right, that you've defined a custom global variable with an empty value in the kamailio.cfg<br>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? <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 11, 2021 at 4:31 PM Sergey Safarov <<a href="mailto:s.safarov@gmail.com">s.safarov@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>In Kamailio config I use empty global string variable</div><div>local.trace_troubleshooting_net = "" descr "trace all SIP messages from given network"<br></div><div><br></div><div>When I check variable value I get blank string</div><div>kamcmd cfg.get local trace_troubleshooting_net<br><br></div><div>I can set new value</div><div>[root@host]# kamcmd cfg.sets local trace_troubleshooting_net "2600::/48"<br>[root@host]# kamcmd cfg.get local trace_troubleshooting_net</div><div>2600::/48<br></div><div><br></div>Now I want to set the empty custom global variable using a command<div>kamcmd cfg.sets group trace_troubleshooting_net ""<br></div><div>But get error</div><div>error: 400 - error at parameter 2: expected string type but record doesn't match type<br></div><div><br></div><div>How to properly set empty values?</div><div><br></div></div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
* <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
* <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Arsen Semenov<br></div><div><br></div></div></div>