[SR-Users] kamcmd mtree.match

Henning Westerholt hw at skalatan.de
Tue Jun 2 16:15:59 CEST 2020


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<https://gilawa.com/>

From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Volker Denneberg
Sent: Sunday, May 31, 2020 12:03 AM
To: sr-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200602/1a290ad2/attachment.html>


More information about the sr-users mailing list