<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    try to prefix the value with s: in command line.<br>
    <br>
    It is kamcmd code that tries to detect if it is a number or not, the
    pass it further to kamailio as integer or string. Using s: is
    overwriting kamcmd auto-detect.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 21/07/14 13:26, Moritz Graf wrote:<br>
    </div>
    <blockquote cite="mid:53CCF8EB.9040706@g-fit.de" type="cite">
      <pre wrap="">Hi There,

i implemented a mapping via htable. For debugging purpose I use kamcmd
to see if the values are correctly filled. Doing so I discovered that
there is a problem getting the values of the keys, where the name is a
integer value. So it's the following behaviour:
#####################################################################
root@kamailio-stage:~# kamcmd htable.dump maptodest
{
        entry: 55
        size: 1
        slot: {
                item: {
                        name: 1
                        value: 0000000000000000001
                }
        }
}
{
        entry: 504
        size: 1
        slot: {
                item: {
                        name: blub
                        value: 0000000000000000001
                }
        }
}
{
        entry: 686
        size: 1
        slot: {
                item: {
                        name: 001
                        value: 0000000000000000001
                }
        }
}

root@kamailio-stage:~# kamcmd htable.get maptodest blub
{
        item: {
                name: blub
                value: 0000000000000000001
        }
}
root@kamailio-stage:~# kamcmd htable.get maptodest 001
error: 500 - Not enough parameters (htable name and key name)
#####################################################################

Is there a reasonable explanation why it works with blub, but not with 001?
Why is he complaining about the number of parameters?
Does anyone know a workarround?


Thanks for any advise!!


greeetz Moritz

</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>