Because a thing seems difficult for you, do not think it impossible for anyone to accomplish. – Marcus Aurelius
Header

AGI – IVR – Time Clock

November 28th, 2011 | Posted by CcR in Asterisk - (0 Comments)


AGI Script

#!/usr/bin/perl

use Asterisk::AGI;
use DBI;

$AGI = new Asterisk::AGI;

my %input = $AGI->ReadParse();
my $callerid = $input{''''callerid''''};

############# Time Clock Questions ################

my $empid = $AGI->get_data(''''employee'''',-1,5); # Asks for Employee ID
$AGI->stream_file(entered);
$AGI->say_digits($empid);

my $optemp = $AGI->get_data(''''correct'''',-1,1); … Read more