Try with latest version from git branch 4.2. I committed a fix for a last minute optimization done for searching the iterator by name.

Ramona

On 27/10/14 15:47, davy van de moere wrote:
I was giving the htable iterator a go , but I can't get it to work.

My relevant config would is:

modparam("htable", "htable", "testhtable=>size=4;")


in the request route I have this:


sht_iterator_start("i1", "testhtable");

     while(sht_iterator_next("i1")) {

          xlog("L_INFO","  $shtitkey(i1) is: $shtitval(i1)\n");

     }

sht_iterator_end("i1");


I added some values to my testhtable:


$ kamcmd htable.dump testhtable

{

        entry: 0

        size: 2

        slot: {

                item: {

                        name: x[0]

                        value: 1

                }

                item: {

                        name: x[1]

                        value: 1

                }

        }

}

But when I have something route over that part I get:



Oct 27 15:33:36  kamailio[18828]: INFO: <script>:   <null> is: <null>

Oct 27 15:33:36 kamailio[18828]: INFO: <script>:   <null> is: <null>


So it is correct to find 2 items in the htable, but for both the key and value are not found.

Tried it on both 4.2 and master.


Thx!



_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to