I believe the porblem is that, since the incoming call is not "closed" before the outgoing call is created, the outgoing call does not work.
I was hoping the delay would solve this problem... but obviously it doesn't.
No - it still won't relinquish the call until the hangup handler has completed. What you need to do is to have the AGI script return, such that the call exits. Then five seconds later, copy the file.
You could do this by setting up a BASH script which executed the Perl in the background. I.e.
#!/bin/sh /path/to/script/foo.pl &
Make sense?
-- Alastair Maw <[EMAIL PROTECTED]> MX Telecom - Systems Analyst http://www.mxtelecom.com
_______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
