search for: ast_connected

Displaying 2 results from an estimated 2 matches for "ast_connected".

2005 Jul 13
0
how to connect to asterisk via perl agi
hello i am getting this error while trying to run ast-rad-acc.pl my $ast_connected = 1; while( 1 ) { if( $astman->connect ) { $ast_connected = 1; syslog('info', 'Connected to Asterisk!'); $astman->setcallback('DEFAULT', \&status_callback); eval { $astman->eventloop; }; print STDERR "Connected To Asterisk\n"; } else { sy...
2005 Jul 18
0
why $cdr{'CALLERID'} and $cdr{'DNID'} are empty in perl agi connected with asterisk manager
...t; $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 $ast_connected = 1; while( 1 ) { if( $astman->connect ) { $ast_connected = 1; syslog('info', 'Connected to Asterisk!'); $astman->setcallback('DEFAULT', \&status_callback); eval { $astman->eventloop; }; } else { syslog('err', 'Could not connect to Asteri...