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
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to