Displaying 1 result from an estimated 1 matches for "hangup_callback".
2009 May 20
2
Manager ExtensionState function
...#39;./lib', '../lib';
$|++;
my $astman = new Asterisk::Manager;
$astman->user('mark');
$astman->secret('mark');
$astman->host('127.0.0.1');
$astman->connect || die $astman->error . "\n";
$astman->setcallback('Hangup', \&hangup_callback);
$astman->setcallback('DEFAULT', \&default_callback);
my %out = $astman->sendcommand(
Action => 'ExtensionState',
Context => demo1,
Exten => 11,...