[Asterisk-Dev] Problem with DND working
kevin at mail.rnktel.com
kevin at mail.rnktel.com
Fri Apr 23 05:49:09 MST 2004
Hey
I have been trying to get DND working using 3 separate AGI scripts with no
success.
dndon.agi - Writes to the database and if you do a database show you see
/DND/exten#
dndoff.agi - Does the database del and removes the entry.
the problem is with my dndck.agi. This is the checker to see if the party
has DND turned on. No matter what I try to do a match on it fails. Here is
the copy of the AGI I'm using:
#! /usr/bin/perl -w
use Asterisk::AGI;
my $AGI = new Asterisk::AGI;
my $var = $AGI->database_get(DND,1000);
if($var eq 'YES') {
$AGI->exec(Voicemail','u1000');
}else{
$AGI->exec('Dial','Sip/username');
}
Any help would be greatly appreciated.
Thanks
Kevin
More information about the asterisk-dev
mailing list