<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Have you tried with kamctl, which uses jsonrpc and theoretically
      you can pass empty values for parameters?</p>
    <p>The binrpc was designed by SER devs during 2005-2008, not sure if
      there is any specs for the packet format and whether empty values
      are supported or not.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 11.06.21 18:23, Arsen Semenov wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAC3hFAoVKwB+0CAUb-MWo7Mj4Zo4F=XAO2CGLskE4f_z=ULngQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto">Then I don’t think it is possible as kamcmd uses
        kamailio binrpc protocol which in turn accepts string or int as
        an arguments and string should be 0 terminated.<br>
      </div>
      <div dir="auto"><br>
      </div>
      <div dir="auto">I’ve tried to reproduce your use case and execute
         kamcmd “cfg.reset group” - it should set the value to the
        default..  but it crushes my 5.5.0 </div>
      <div><br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Fri, 11 Jun 2021 at 8:53
            PM, Sergey Safarov <<a href="mailto:s.safarov@gmail.com"
              moz-do-not-send="true">s.safarov@gmail.com</a>> wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
            <div dir="ltr">yes, Arsen, you are correct.</div>
            <br>
            <div class="gmail_quote">
              <div dir="ltr" class="gmail_attr">On Fri, Jun 11, 2021 at
                5:20 PM Arsen Semenov <<a
                  href="mailto:arsperger@gmail.com" target="_blank"
                  moz-do-not-send="true">arsperger@gmail.com</a>>
                wrote:<br>
              </div>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
                <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" target="_blank"
                      moz-do-not-send="true">s.safarov@gmail.com</a>>
                    wrote:<br>
                  </div>
                  <blockquote class="gmail_quote" style="margin:0px 0px
                    0px
0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
                    <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" moz-do-not-send="true">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"
                      moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                  </blockquote>
                </div>
                <br clear="all">
                <div><br>
                </div>
                -- <br>
                <div dir="ltr">
                  <div dir="ltr">
                    <div>Arsen Semenov<br>
                    </div>
                    <div><br>
                    </div>
                  </div>
                </div>
__________________________________________________________<br>
                Kamailio - Users Mailing List - Non Commercial
                Discussions<br>
                  * <a href="mailto:sr-users@lists.kamailio.org"
                  target="_blank" moz-do-not-send="true">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"
                  moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
              </blockquote>
            </div>
            __________________________________________________________<br>
            Kamailio - Users Mailing List - Non Commercial Discussions<br>
              * <a href="mailto:sr-users@lists.kamailio.org"
              target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
          </blockquote>
        </div>
      </div>
      -- <br>
      <div dir="ltr" class="gmail_signature"
        data-smartmail="gmail_signature">Sent from Gmail Mobile</div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a></pre>
  </body>
</html>