[Asterisk-Users] Call script after hangup

Frank N. fnadeau at electrosolutions.ca
Fri Sep 5 06:10:39 MST 2003


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


-----Original Message-----
From: Alastair Maw [mailto:asterisk at almaw.com]
Sent: 4 septembre, 2003 11:28
To: asterisk-users at lists.digium.com
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 <al.maw at mxtelecom.com>
MX Telecom - Systems Analyst
http://www.mxtelecom.com
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list