Discussion:
[sr-dev] param.count broken in latest master?
Juha Heinanen
2021-06-01 13:06:47 UTC
Permalink
Content preview: This used to work: $var(count) = $(var(servers){param.count,%});
but latest master gives:

Content analysis details: (-2.7 points, 5.5 required)

pts rule name description
---- ---------------------- --------------------------------------------------
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
-0.0 SPF_HELO_PASS SPF: HELO matches SPF record
-0.0 SPF_PASS SPF: sender matches SPF record
0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
valid
0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid
-1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list
manager

This used to work:

$var(count) = $(var(servers){param.count,%});

but latest master gives:

Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) INFO: pv [pv_shv.c:60]: shvar_init_locks(): locks array size 16
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) ERROR: pv [pv_trans.c:3254]: tr_parse_paramlist(): invalid count transformation: count,%}!
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) ERROR: <core> [core/pvapi.c:1799]: tr_lookup(): error parsing [{param.count,%}]
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) ERROR: <core> [core/pvapi.c:1106]: pv_parse_spec2(): bad tr in pvar name "var"
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) ERROR: <core> [core/pvapi.c:1131]: pv_parse_spec2(): invalid parsing in [$(var(servers){param.count,%})] at (4)
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) CRITICAL: <core> [core/cfg.y:3683]: yyerror_at(): parse error in config file /etc/sip-proxy/sip-proxy.cfg, line 7591, column 19-48: Can't get from cache: $(var(servers){param.count,%})

-- Juha
Daniel-Constantin Mierla
2021-06-01 17:31:40 UTC
Permalink
Content preview: Likely I broke it in the morning -- I will look at it. Cheers,
Daniel On 01.06.21 15:06, Juha Heinanen wrote: > This used to work: > > $var(count)
= $(var(servers){param.count,%}); > > but latest master gives: > > Jun 1
16:02:04 lab sip-proxy[11965]: 0(12020) INFO: pv [ [...]

Content analysis details: (-3.3 points, 5.5 required)

pts rule name description
---- ---------------------- --------------------------------------------------
-0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2)
[209.85.221.42 listed in wl.mailspike.net]
-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/,
no trust
[209.85.221.42 listed in list.dnswl.org]
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
CUSTOM_MED
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider (miconda[at]gmail.com)
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
-0.0 SPF_PASS SPF: sender matches SPF record
0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
valid
0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid
-1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list
manager
-0.6 NICE_REPLY_A Looks like a legit reply (A)

Likely I broke it in the morning -- I will look at it.

Cheers,
Daniel
Post by Juha Heinanen
$var(count) = $(var(servers){param.count,%});
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) INFO: pv [pv_shv.c:60]: shvar_init_locks(): locks array size 16
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) ERROR: pv [pv_trans.c:3254]: tr_parse_paramlist(): invalid count transformation: count,%}!
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) ERROR: <core> [core/pvapi.c:1799]: tr_lookup(): error parsing [{param.count,%}]
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) ERROR: <core> [core/pvapi.c:1106]: pv_parse_spec2(): bad tr in pvar name "var"
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) ERROR: <core> [core/pvapi.c:1131]: pv_parse_spec2(): invalid parsing in [$(var(servers){param.count,%})] at (4)
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) CRITICAL: <core> [core/cfg.y:3683]: yyerror_at(): parse error in config file /etc/sip-proxy/sip-proxy.cfg, line 7591, column 19-48: Can't get from cache: $(var(servers){param.count,%})
-- Juha
_______________________________________________
Kamailio (SER) - Development Mailing List
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online - June 7-10, 2021 (America Timezone)
* https://www.asipto.com/sw/kamailio-advanced-training-online/
Daniel-Constantin Mierla
2021-06-01 17:48:45 UTC
Permalink
Content preview: Give it a try again with latest master, I did also some basic
tests and seems ok. Cheers, Daniel On 01.06.21 19:31, Daniel-Constantin Mierla
wrote: > Likely I broke it in the morning -- I will look at it. > > Cheers,
Post by Daniel-Constantin Mierla
Post by Juha Heinanen
[...]
Content analysis details: (-3.3 points, 5.5 required)

pts rule name description
---- ---------------------- --------------------------------------------------
-0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2)
[209.85.221.42 listed in wl.mailspike.net]
-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/,
no trust
[209.85.221.42 listed in list.dnswl.org]
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
CUSTOM_MED
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider (miconda[at]gmail.com)
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
-0.0 SPF_PASS SPF: sender matches SPF record
0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
valid
0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid
-1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list
manager
-0.6 NICE_REPLY_A Looks like a legit reply (A)

Give it a try again with latest master, I did also some basic tests and
seems ok.

Cheers,
Daniel
Post by Daniel-Constantin Mierla
Likely I broke it in the morning -- I will look at it.
Cheers,
Daniel
Post by Juha Heinanen
$var(count) = $(var(servers){param.count,%});
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) INFO: pv [pv_shv.c:60]: shvar_init_locks(): locks array size 16
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) ERROR: pv [pv_trans.c:3254]: tr_parse_paramlist(): invalid count transformation: count,%}!
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) ERROR: <core> [core/pvapi.c:1799]: tr_lookup(): error parsing [{param.count,%}]
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) ERROR: <core> [core/pvapi.c:1106]: pv_parse_spec2(): bad tr in pvar name "var"
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) ERROR: <core> [core/pvapi.c:1131]: pv_parse_spec2(): invalid parsing in [$(var(servers){param.count,%})] at (4)
Jun 1 16:02:04 lab sip-proxy[11965]: 0(12020) CRITICAL: <core> [core/cfg.y:3683]: yyerror_at(): parse error in config file /etc/sip-proxy/sip-proxy.cfg, line 7591, column 19-48: Can't get from cache: $(var(servers){param.count,%})
-- Juha
_______________________________________________
Kamailio (SER) - Development Mailing List
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online - June 7-10, 2021 (America Timezone)
* https://www.asipto.com/sw/kamailio-advanced-training-online/
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online - June 7-10, 2021 (America Timezone)
* https://www.asipto.com/sw/kamailio-advanced-training-online/
Juha Heinanen
2021-06-01 18:24:24 UTC
Permalink
Content preview: Daniel-Constantin Mierla writes: > Give it a try again with
latest master, I did also some basic tests and > seems ok. Thanks, works
now.

Content analysis details: (-3.3 points, 5.5 required)

pts rule name description
---- ---------------------- --------------------------------------------------
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
-0.0 SPF_HELO_PASS SPF: HELO matches SPF record
-0.0 SPF_PASS SPF: sender matches SPF record
0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
valid
0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid
-1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list
manager
-0.6 NICE_REPLY_A Looks like a legit reply (A)
Post by Daniel-Constantin Mierla
Give it a try again with latest master, I did also some basic tests and
seems ok.
Thanks, works now.

-- Juha

Loading...