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.