[Asterisk-Dev] Problem with DND working

Steven Critchfield critch at basesys.com
Fri Apr 23 06:43:52 MST 2004


On Fri, 2004-04-23 at 07:49, kevin at mail.rnktel.com wrote:
> #! /usr/bin/perl -w
> use Asterisk::AGI;
> my $AGI = new Asterisk::AGI;
> my $var = $AGI->database_get(DND,1000);

Can't help for the above section, but instead of execing things below,
you should just upgrade the priority to th proper amount so when you
exit the dial plan handles the call. 

> if($var eq 'YES') {
> $AGI->exec(Voicemail','u1000');
> }else{
> $AGI->exec('Dial','Sip/username');
> }
-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-dev mailing list