[SR-Users] kamcmd mtree.match

George Diamantopoulos georgediam at gmail.com
Tue Jun 2 17:08:42 CEST 2020


Have you tried

kamcmd mtree.match siteId s:49241531075212 0

?
On Tue, 2 Jun 2020, 17:17 Henning Westerholt, <hw at 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 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
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200602/e0b7faca/attachment.html>


More information about the sr-users mailing list