That makes perfect sense. It works perfectly.
Thanks to you and Matteo who suggested the same solution.


-----Original Message-----
From: Alastair Maw [mailto:[EMAIL PROTECTED]
Sent: 4 septembre, 2003 11:28
To: [EMAIL PROTECTED]
Subject: Re: [Asterisk-Users] Call script after hangup

Frank N. wrote:
> 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

_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to