search for: safe_exit

Displaying 1 result from an estimated 1 matches for "safe_exit".

2005 Jul 18
0
why $cdr{'CALLERID'} and $cdr{'DNID'} are empty in perl agi connected with asterisk manager
...# daemon setpgrp(); select(STDERR); $| = 1; select(STDOUT); $| = 1; openlog('ast-rad-acc', 'cons,pid', 'daemon'); syslog('notice', "RADIUS accounting for Asterisk started"); } # Install signall handler # $SIG{INT} = \&safe_exit; $SIG{QUIT} = \&safe_exit; $SIG{TERM} = \&safe_exit; $SIG{HUP} = \&load_config; # Drop privileges # setuid($uid); $< = $uid; $> = $uid; my $astman = new Asterisk::Manager; $astman->user($ast_username); $astman->secret($ast_password); $astman->host($ast_hostname); my $a...