<?php
if (!defined('FREEPBX_IS_AUTH')) { die('No direct script access allowed'); }

//for translation only
if (false) {
_("Call Forward");
_("Call Forward All Activate");
_("Call Forward All Deactivate");
_("Call Forward All Prompting Deactivate");
_("Call Forward Busy Activate");
_("Call Forward Busy Deactivate");
_("Call Forward Busy Prompting Deactivate");
_("Call Forward No Answer/Unavailable Activate");
_("Call Forward No Answer/Unavailable Deactivate");
_("Call Forward Toggle");
}

// Unconditional Call Forwarding
$fcc = new featurecode('callforward', 'cfon');
$fcc->setDescription('Call Forward All Activate');
$fcc->setDefault('*72');
$fcc->update();
unset($fcc);

$fcc = new featurecode('callforward', 'cfpon');
$fcc->setDescription('Call Forward All Prompting Activate');
$fcc->setDefault('*93');
$fcc->update();
unset($fcc);

$fcc = new featurecode('callforward', 'cfoff');
$fcc->setDescription('Call Forward All Deactivate');
$fcc->setDefault('*73');
$fcc->update();
unset($fcc);

$fcc = new featurecode('callforward', 'cfoff_any');
$fcc->setDescription('Call Forward All Prompting Deactivate');
$fcc->setDefault('*74');
$fcc->update();
unset($fcc);

// Call Forward on Busy
$fcc = new featurecode('callforward', 'cfbon');
$fcc->setDescription('Call Forward Busy Activate');
$fcc->setDefault('*90');
$fcc->update();
unset($fcc);

$fcc = new featurecode('callforward', 'cfbpon');
$fcc->setDescription('Call Forward Busy Prompting Activate');
$fcc->setDefault('*94');
$fcc->update();
unset($fcc);

$fcc = new featurecode('callforward', 'cfboff');
$fcc->setDescription('Call Forward Busy Deactivate');
$fcc->setDefault('*91');
$fcc->update();
unset($fcc);

$fcc = new featurecode('callforward', 'cfboff_any');
$fcc->setDescription('Call Forward Busy Prompting Deactivate');
$fcc->setDefault('*92');
$fcc->update();
unset($fcc);

// Call Forward on No Answer/Unavailable (i.e. phone not registered)
$fcc = new featurecode('callforward', 'cfuon');
$fcc->setDescription('Call Forward No Answer/Unavailable Activate');
$fcc->setDefault('*52');
$fcc->update();
unset($fcc);

$fcc = new featurecode('callforward', 'cfupon');
$fcc->setDescription('Call Forward No Answer/Unavailable Prompting Activate');
$fcc->setDefault('*95');
$fcc->update();
unset($fcc);

$fcc = new featurecode('callforward', 'cfuoff');
$fcc->setDescription('Call Forward No Answer/Unavailable Deactivate');
$fcc->setDefault('*53');
$fcc->update();
unset($fcc);

$fcc = new featurecode('callforward', 'cf_toggle');
$fcc->setDescription('Call Forward Toggle');
$fcc->setDefault('*96');
$fcc->update();
unset($fcc);

?>
