<div><font><span style="background-color:rgba(255,255,255,0)">Hi,</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">I have a hard time using the htable iterator...</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">I have this simple setup:</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">modparam("htable", "htable", "h1=>size=4")</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">...</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">            sht_iterator_start("i1", "h1");</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">            while (sht_iterator_next("i1")) {</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">                xlog("L_ERR", " SS: $shtitkey(i1) and $shtitval(i1)\n");</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">            }</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">            sht_iterator_end("i1");</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">...</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">Now to put some simple data, I use:</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"># sudo kamcmd htable.sets h1 test 123</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"># sudo kamcmd htable.dump h1</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">{</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">        entry: 8</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">        size: 1</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">        slot: {</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">                item: {</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">                        name: test</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">                        value: 123</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">                }</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">        }</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">}</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">When the route is "executed", I get this in my log file:</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">Nov  3 15:16:47 beast /sbin/kamailio[24865]: ERROR: SS: <null> and <null></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">The $shtitkey(i1) and $shtitval(i1) is always null. Is it a bug? Or did I manage to do something wrong?</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><font><span style="background-color:rgba(255,255,255,0)">--<br>Best regards,<br>Glenn O. Larsen</span></font><br><br>-- <br><div dir="ltr"><div><span style="background-color:rgba(255,255,255,0)">Best regards,</span><br></div><div><b style="background-color:rgba(255,255,255,0)"><br></b></div><div><b style="background-color:rgba(255,255,255,0)">Glenn O. Larsen</b></div><div><i style="background-color:rgba(255,255,255,0)">CTO</i></div><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div><b style="background-color:rgba(255,255,255,0)">SimCom AS</b></div><div><span style="background-color:rgba(255,255,255,0)">Professor Birkelands vei 24c</span></div><div><span style="background-color:rgba(255,255,255,0)">N-1081 Oslo</span></div><div><span style="background-color:rgba(255,255,255,0)">Direct: <a style="color:rgb(17,85,204)">+47 21 09 34 12</a></span></div><div><span style="background-color:rgba(255,255,255,0)">Mobile: <a style="color:rgb(17,85,204)">+47 997 00 000</a></span></div><div><span style="background-color:rgba(255,255,255,0)">Online profile: <a href="http://simcom.no/glenn.larsen" style="color:rgb(17,85,204)" target="_blank">http://simcom.no/glenn.larsen</a></span></div><div><br></div><div><i><font style="background-color:rgba(255,255,255,0)">We simplify your communication ...</font></i></div></div><br>