Have you tried
kamcmd mtree.match siteId s:49241531075212 0
? On Tue, 2 Jun 2020, 17:17 Henning Westerholt, hw@skalatan.de wrote:
Hello Volker,
the error message you‘ve got from the command looks like the generic error that is returned if the number or type of parameters do not match. Did you managed to get a match from the kamcmd command at all?
Further hints might be also visible in the kamailio log file.
Cheers,
Henning
--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com
*From:* sr-users sr-users-bounces@lists.kamailio.org *On Behalf Of *Volker Denneberg *Sent:* Sunday, May 31, 2020 12:03 AM *To:* sr-users@lists.kamailio.org *Subject:* [SR-Users] kamcmd mtree.match
Hi,
given this mtree
kamcmd mtree.list siteId
{
tname: siteId tprefix: 00492419697994 tvalue: { 00492419697994 2388 }
}
{
tname: siteId tprefix: 492415310752 tvalue: { 492415310752 2388 }
}
i wonder why this lookup fails:
kamcmd mtree.match siteId 49241531075212 0
error: 500 - Invalid Parameters
My expectation was that 2nd tprefix should match.
I am using
modparam("mtree", "db_table", "mtrees") modparam("mtree", "char_list", "0123456789+") modparam("mtree", "mt_tree_type", 0) # payload type for
tree data : string
Thanks in advance,
Volker _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users