<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>the examples in uac docs are not with numbers, as I could check
      quickly -- or I missed some of them?</p>
    <p>Anyhow, if you want to add additional examples to highlight the
      use of s: to keep numbers as strings, just do it -- any
      improvement to docs is more than welcome!<br>
    </p>
    <p>This auto-conversion is done by kamcmd in this case, which is
      standalone app.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 21.06.19 11:10, Karsten Horsmann
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFArqsZDwwhjg-Khv7KQZEZZnwX5QFSmF_CVCu_HUPj5BaOOog@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi Daniel,
        <div><br>
        </div>
        <div>of course - this version shows it up. </div>
        <div>But most people overlooked that and take a look at the
          kamcmd examples in uac module page.<br>
        </div>
        <div><br>
        </div>
        <div>And for example:</div>
        <div><br>
        </div>
        <div>kamcmd uac.reg_info auth_username 1111111111<br>
          error: 404 - Record not found<br>
        </div>
        <div><br>
        </div>
        <div>But with kamcmd uac.reg_info auth_username s:1111111111</div>
        <div>it works. How is 1111111111 a "string"? - </div>
        <div><br>
        </div>
        <div>I assume its a string of varchar(64) in all *_* fields in
          my mysql kamailio-db.<br>
        </div>
        <div>Maybe i fill a feature request for the documentation
          examples.</div>
        <div><br>
        </div>
        <div>kamcmd -h<br>
          version: kamcmd 1.5<br>
          Usage: kamcmd [options][-s address] [ cmd ]<br>
          Options:<br>
              -s address  unix socket name or host name to send the
          commands on<br>
              -R name     force reply socket name, for the unix datagram
          socket mode<br>
              -D dir      create the reply socket in the directory
          <dir> if no reply<br>
                          socket is forced (-R) and a unix datagram
          socket is selected<br>
                          as the transport<br>
              -f format   print the result using format. Format is a
          string containing<br>
                          %v at the places where values read from the
          reply should be<br>
                          substituted. To print '%v', escape it using
          '%': %%v.<br>
              -v          Verbose<br>
              -V          Version number<br>
              -h          This help message<br>
          address:<br>
              [proto:]name[:port]   where proto is one of tcp, udp,
          unixs or unixd<br>
                                    e.g.:  tcp:localhost:2048 ,
          unixs:/tmp/kamailio_ctl<br>
          cmd:<br>
              method  [arg1 [arg2...]]<br>
          arg:<br>
          <b>     string or number; to force a number to be interpreted
            as string<br>
                 prefix it by "s:", e.g. s:1</b><br>
          Examples:<br>
                  kamcmd -s unixs:/tmp/kamcmd_ctl system.listMethods<br>
                  kamcmd -f "pid: %v  desc: %v\n" -s <a class="moz-txt-link-freetext" href="udp:localhost:2047">udp:localhost:2047</a>
          <a href="http://core.ps" target="_blank"
            moz-do-not-send="true">core.ps</a><br>
                  kamcmd ps  # uses default ctl socket<br>
                  kamcmd     # enters interactive mode on the default
          socket<br>
                  kamcmd -s tcp:localhost # interactive mode, default
          port<br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">Am Fr., 21. Juni 2019 um
          10:59 Uhr schrieb Daniel-Constantin Mierla <<a
            href="mailto:miconda@gmail.com" target="_blank"
            moz-do-not-send="true">miconda@gmail.com</a>>:<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 bgcolor="#FFFFFF">
            <p>Hello,</p>
            <p>just sake of completion, do not forget '-h' for these
              apps:</p>
            <p>kamcmd -h</p>
            <p>I think it should be also noted in 'man kamcmd', if not,
              it should be added.</p>
            <p>Cheers,<br>
              Daniel<br>
            </p>
            <div
class="gmail-m_7173728858636996861gmail-m_-2277817459639588157moz-cite-prefix">On
              21.06.19 10:45, Karsten Horsmann wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">Hi List,
                <div><br>
                </div>
                <div>dunno why my google skills get better after writing
                  you an email.</div>
                <div>If its look like an number but your backend </div>
                <div>is saved as string, you need an s: as prefix - so
                  my understanding.</div>
                <div><br>
                </div>
                <div>I need to prefix all with s: for string then and it
                  works.</div>
                <div><br>
                </div>
                <div>kamcmd uac.reg_enable auth_username s:FFFFFFFFFFFF<br>
                </div>
                <div><br>
                </div>
                <div><a
href="https://lists.kamailio.org/pipermail/sr-users/2017-August/098168.html"
                    target="_blank" moz-do-not-send="true">https://lists.kamailio.org/pipermail/sr-users/2017-August/098168.html</a>  <br>
                </div>
                <div><br>
                </div>
              </div>
              <br>
              <div class="gmail_quote">
                <div dir="ltr" class="gmail_attr">Am Fr., 21. Juni 2019
                  um 10:18 Uhr schrieb Karsten Horsmann <<a
                    href="mailto:khorsmann@gmail.com" target="_blank"
                    moz-do-not-send="true">khorsmann@gmail.com</a>>:<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">Good morning List!
                    <div><br>
                    </div>
                    <div>I have an issue with my kamcmd from kamailio
                      5.2.3 on CentOS 7.6 with kamailio-rpms.</div>
                    <div><br>
                    </div>
                    <div>The kamcmd util can not find my registrations
                      via command </div>
                    <div>kamcmd uac.reg_enable auth_username
                      FFFFFFFFFFFF </div>
                    <div>kamcmd uac.reg_info l_username +49XXXXXXXX<br>
                    </div>
                    <div>and soone. Only global commands for uac works.</div>
                    <div><br>
                    </div>
                    <div>Whats going wrong with my kamcmd? Any ideas?
                      Thank for your hints!</div>
                    <div><br>
                    </div>
                    <div># kamcmd uac.reg_dump<br>
                      {<br>
                              l_uuid: 49XXXXXXX<br>
                              l_username: +49XXXXXXXX<br>
                              l_domain: <a
                        href="http://sip-trunk.telekom.de"
                        target="_blank" moz-do-not-send="true">sip-trunk.telekom.de</a><br>
                              r_username: +49XXXXXXXX<br>
                              r_domain: <a
                        href="http://sip-trunk.telekom.de"
                        target="_blank" moz-do-not-send="true">sip-trunk.telekom.de</a><br>
                              realm: <a
                        href="http://sip-trunk.telekom.de"
                        target="_blank" moz-do-not-send="true">sip-trunk.telekom.de</a><br>
                              auth_username: FFFFFFFFFFFF<br>
                              auth_password: ***************<br>
                              auth_proxy: sip:<a
                        href="http://reg.sip-trunk.telekom.de"
                        target="_blank" moz-do-not-send="true">reg.sip-trunk.telekom.de</a><br>
                              expires: 360<br>
                              flags: 20<br>
                              diff_expires: 129<br>
                              timer_expires: 1561103682<br>
                              reg_init: 1561101919<br>
                              reg_delay: 3<br>
                      }<br>
                      # kamcmd uac.reg_enable auth_username FFFFFFFFFFFF<br>
                      error: 404 - Record not found<br>
                    </div>
                    <div><br clear="all">
                      <div><br>
                      </div>
                      -- </div>
                    <div>Kind regards<br>
                      <div dir="ltr"
class="gmail-m_7173728858636996861gmail-m_-2277817459639588157gmail-m_-6204933799629735011gmail_signature">Mit
                        freundlichen Grüßen<br>
                        *Karsten Horsmann*<br>
                      </div>
                    </div>
                  </div>
                </blockquote>
              </div>
              <br clear="all">
              <div><br>
              </div>
              -- <br>
              <div dir="ltr"
class="gmail-m_7173728858636996861gmail-m_-2277817459639588157gmail_signature">Mit
                freundlichen Grüßen<br>
                *Karsten Horsmann*<br>
              </div>
              <br>
              <fieldset
class="gmail-m_7173728858636996861gmail-m_-2277817459639588157mimeAttachmentHeader"></fieldset>
              <pre class="gmail-m_7173728858636996861gmail-m_-2277817459639588157moz-quote-pre">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="gmail-m_7173728858636996861gmail-m_-2277817459639588157moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a class="gmail-m_7173728858636996861gmail-m_-2277817459639588157moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
            </blockquote>
            <pre class="gmail-m_7173728858636996861gmail-m_-2277817459639588157moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="gmail-m_7173728858636996861gmail-m_-2277817459639588157moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank" moz-do-not-send="true">www.asipto.com</a>
<a class="gmail-m_7173728858636996861gmail-m_-2277817459639588157moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="gmail-m_7173728858636996861gmail-m_-2277817459639588157moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank" moz-do-not-send="true">www.linkedin.com/in/miconda</a></pre>
          </div>
        </blockquote>
      </div>
      <br clear="all">
      <div><br>
      </div>
      -- <br>
      <div dir="ltr" class="gmail-m_7173728858636996861gmail_signature">Mit
        freundlichen Grüßen<br>
        *Karsten Horsmann*<br>
      </div>
    </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>