[asterisk-users] Waiting before executing System command

Alexander Burke asterisk at alexburke.ca
Fri Oct 27 19:05:22 MST 2006


Hello, all!

I'm having a problem with the following snippet that executes upon hangup:

exten => h,n,Wait(5)
exten => h,n,System(mv /some/file /some/other/dir/)

Wait() doesn't want to seem to wait! So instead I tried:

exten => h,n,System(sleep 5; mv /tmp/${CALLFILENAME} 
/var/spool/asterisk/outgoing/)

This only executes sleep, not mv. How can I make it wait before 
moving the file?

Thanks in advance!

--
Alexander Burke, A+, CCNA
Kingston, Ontario, Canada 



More information about the asterisk-users mailing list