what about

exten => h,n,System(mycommand /some/file /some/other/dir/)

Where "mycommand" is your custom shell script to sleep before moving the file.

On 10/27/06, Alexander Burke <[EMAIL PROTECTED]> wrote:
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



--
"Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org";
_______________________________________________
--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