Hi,
I
have a hard time using the htable iterator...
I
have this simple setup:
modparam("htable",
"htable", "h1=>size=4")
...
sht_iterator_start("i1", "h1");
while (sht_iterator_next("i1")) {
xlog("L_ERR", " SS: $shtitkey(i1) and
$shtitval(i1)\n");
}
sht_iterator_end("i1");
...
Now
to put some simple data, I use:
#
sudo kamcmd htable.sets h1 test 123
#
sudo kamcmd htable.dump h1
{
entry: 8
size: 1
slot: {
item: {
name: test
value: 123
}
}
}
When
the route is "executed", I get this in my log file:
Nov
3 15:16:47 beast /sbin/kamailio[24865]: ERROR: SS:
<null> and <null>
The
$shtitkey(i1) and $shtitval(i1) is always null. Is it a bug?
Or did I manage to do something wrong?
--
Best regards,
Glenn O. Larsen
--
Best
regards,
Glenn O.
Larsen
CTO
SimCom AS
Professor
Birkelands vei 24c
N-1081
Oslo
We
simplify your communication ...
_______________________________________________
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