[Asterisk-cvs] astcc astcc.agi,1.15,1.16
kpfleming
kpfleming
Thu Oct 13 19:03:50 CDT 2005
Update of /usr/cvsroot/astcc
In directory mongoose.digium.com:/tmp/cvs-serv22916
Modified Files:
astcc.agi
Log Message:
handle SIGHUP sanely (issue #5400)
Index: astcc.agi
===================================================================
RCS file: /usr/cvsroot/astcc/astcc.agi,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- astcc.agi 23 Aug 2005 00:55:38 -0000 1.15
+++ astcc.agi 13 Oct 2005 22:58:27 -0000 1.16
@@ -47,6 +47,14 @@
use Asterisk::AGI;
use POSIX qw(ceil floor);
+
+$SIG{HUP} = 'ignore_hup';
+
+sub ignore_hup {
+ print STDERR "\nHUP received!\n\n";
+}
+
+
sub load_config() {
open(CFG, "</var/lib/astcc/astcc-config.conf");
while(<CFG>) {
@@ -654,4 +662,4 @@
#$res = &mystreamfile("astcc-unavail");
&savecdr($cardno, $callerid, $phoneno, $trunk, $res, 0, 0);
&setinuse($carddata->{number}, 0);
-exit(0);
\ No newline at end of file
+exit(0);
More information about the svn-commits
mailing list