[asterisk-users] Record() : How to get filename created with %d?
Baji Panchumarti
baji.panchumarti at gmail.com
Sat Nov 10 19:16:44 CST 2007
On Nov 10, 2007 7:34 PM, Vincent wrote:
[...]
> exten => _[1-4],n,TrySystem(mv /tmp/msg%d.wav /var/www/asterisk/)
[...]
TrySystem is passing the cmd to (bash) shell, just give it a file match
skeleton as long as you don't have other "msgNNN.wav" files that
shouldn't be moved.
so
exten => _[1-4],n,TrySystem(mv /tmp/msg*.wav /var/www/asterisk/)
should move the file(s), escape the * if needed using \*
--
More information about the asterisk-users
mailing list