Displaying 1 result from an estimated 1 matches for "cme_db".
Did you mean:
cedb
2005 Jul 19
0
Timing out issue whenusing AGI
...Any suggestions on what might cause this.
Kurt
#!/usr/bin/perl -w
use warnings;
use Asterisk::AGI;
$AGI = new Asterisk::AGI;
my %input = $AGI->ReadParse();
$AGI-answer(); #I tested with this command pounded and not pounded out.
my $val = $ARGV[0];
open(IN, "/var/lib/asterisk/agi-bin/cme_db") or die "$!";
my $ext = 0;
print STDERR "$val\n";
while (<IN>) {
chomp;
$ext = $_;
# print STDERR "$ext\n";
if ($ext == $val) {
$AGI->exec('Dial',"SIP/$ext".'@cme-pbx');
close(IN);
goto EXIT;
}...