I would advise to check the $ci string to avoid some kind of injection of
code because you don't know who generates this callerid field and I have
found some external carriers and untrusted clients that using quotes, curly
brakes, colon and semicolons inside of the callerid values.
;)
El vie, 6 ene 2023 a las 16:55, Daniel-Constantin Mierla (<miconda(a)gmail.com>)
escribió:
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.
<https://www.vocinity.com/gabbi>
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave(a)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.comwww.twitter.com/miconda --
www.linkedin.com/in/miconda
Kamailio World Conference - June 5-7, 2023 -
www.kamailioworld.com
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave(a)lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to
the sender!
Edit mailing list options or unsubscribe: