Hello,

can you try with latest git branch 5.6? I pushed a commit for it, somehow the {val} transformation was missing from exports.

Cheers,
Daniel

On 02.06.23 15:58, Kaufman wrote:

Beginning in 5.6 new {val.*} transformations are documented as being exported by the pv module, however if I try using it Kamailio fails to start.  Wondering if maybe it’s actually imported by another module and the documentation is wrong or something like that?

 

This configuration in 5.6.3 on Alpine Linux installed from packages:

 

#!KAMAILIO

 

loadmodule "pv"

loadmodule "xlog"

 

request_route {

    xlog("Null val: $(avp(nothing){val.ne})\n");

    exit;

}

 

 

Fails to start with the following:

 

0(114) INFO: <core> [main.c:3055]: main(): processes (at least): 29 - shm size: 67108864 - pkg size: 8388608

0(114) ERROR: <core> [core/pvapi.c:1774]: tr_lookup(): unknown transformation: [val] in [{val.ne}]

0(114) ERROR: <core> [core/pvapi.c:1799]: tr_lookup(): error parsing [{val.ne}]

0(114) ERROR: <core> [core/pvapi.c:1106]: pv_parse_spec2(): bad tr in pvar name "avp"

0(114) ERROR: <core> [core/pvapi.c:1131]: pv_parse_spec2(): invalid parsing in [$(avp(nothing){val.ne})] at (4)

0(114) ERROR: xlog [xlog.c:551]: xdbg_fixup_helper(): wrong format[Null val: $(avp(nothing){val.ne})]

0(114) ERROR: <core> [core/route.c:1169]: fix_actions(): fixing failed (code=-1) at cfg:/etc/kamailio/kamailio.cfg:7

 

 

 

Kaufman

Sr. VoIP Engineer - BCM One

 

+1.612.735.9309

bkaufman@bcmone.com

24 hour client support: +1.855.639.6300

 

       

 

NOTE: This e-mail and any attachments are from BCM One, Inc. and are intended

solely for the use and review of the individual(s) to whom it is addressed.

If you believe you received this e-mail in error, please notify the sender

immediately, delete the e-mail (and any attachments) from your computer and do

not copy or disclose it to anyone else.

 


__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - June 5-7, 2023 - www.kamailioworld.com