search for: status_callback

Displaying 3 results from an estimated 3 matches for "status_callback".

2005 Jul 18
0
why $cdr{'CALLERID'} and $cdr{'DNID'} are empty in perl agi connected with 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 Asterisk!') if $ast_connected; $ast_connected = 0; } sleep 1; } sub status_callback { my (%event) = @_; return unless defined(%event); foreach (keys %event) { syslog...
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 { syslog('err', 'Could not connect to Asterisk!') if $ast_connected; print STDERR "could not Connect To Asterisk\n"; $ast_connected = 0; } sleep 1; } -----------------...
2005 Feb 25
0
Asterisk with PortaOne Radius client- problem in accounting script with OH323
...lue in concatenation (.) or string at ./ast-rad-acc.pl line 244, <GEN744> line 278. main::send_acc('LINK_END',1109334310,'LINK_START',1109334302,'CALL_END', 1109334310,'ACCOUNT CODE',9612345678,'CAUSE',...) called at ./ast-rad-acc.pl line 227 main::status_callback('Event','Hangup','Channel','OH323/L19615','Cause', 0,'Uniqueid',110933 4287.3) called at /usr/lib/perl5/site_perl/5.8.0/Asterisk/Manager.pm line 316 Asterisk::Manager::eventcallback('Asterisk::Manager=HASH(0x8776868)','Ev ent','H...