Use $(ci).wav to explicitly mark the name of the variable -- the . is allowed in the variable name and the interpreter goes ahead to identify the longes possible variable name.

Cheers,
Daniel

On 06.01.23 15:05, Nathan Stratton wrote:
Trying to rename rtpengine files with:

exec_msg("mv /var/spool/rtpengine/rtpengine-recording/$ci* /var/spool/rtpengine/rtpengine-recording/$ci.wav");

But get this error:

Jan 06 13:59:19 proxy1 /usr/sbin/kamailio[2929]: ERROR: <core> [core/pvapi.c:924]: pv_parse_spec2(): error searching pvar "ci.wav"
Jan 06 13:59:19 proxy1 /usr/sbin/kamailio[2929]: ERROR: <core> [core/pvapi.c:1127]: pv_parse_spec2(): wrong char [v/118] in [$ci.wav] at [6 (0)]
Jan 06 13:59:19 proxy1 /usr/sbin/kamailio[2929]: ERROR: <core> [core/sr_module.c:1157]: fix_param(): bad PVE format: "mv /var/spool/rtpengine/rtpengine-recording/$ci* /var/spool/rtpengine/rtpengine-recording/$ci.wav"
Jan 06 13:59:19 proxy1 /usr/sbin/kamailio[2929]: ERROR: <core> [core/mod_fix.c:564]: fixup_spve_null(): Cannot convert function parameter 1 to space

Any ideas? 

><>
Nathan Stratton
Founder, CTO
Vocinity, Inc. 



__________________________________________________________
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