Hello,
be sure you use the latest git branch 4.2 or nightly debian builds -- it
was a fix to this kind of issue after the release of 4.2.0 (it will be
part of 4.2.1).
Cheers,
Daniel
On 03/11/14 17:51, Glenn Larsen wrote:
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
Direct: +47 21 09 34 12
Mobile: +47 997 00 000
Online profile:
http://simcom.no/glenn.larsen
/We simplify your communication .../
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Nov 24-27, Berlin -
http://www.asipto.com