?> </div> <div class="field"> <?php echo form::label('activefeaturecode[exten]', 'Destination: '); ?> <?php if (isset($activefeaturecode['exten'])) { $selectedClass = numbering::getAssignedPoolByNumber($activefeaturecode['exten']); } else { $selectedClass = NULL; } echo numbering::poolsDropdown(array('name' => 'activefeaturecode_class_type', 'forDependent' => TRUE), $selectedClass); echo " named "; echo numbering::numbersDropdown(array('id' => 'activefeaturecode_inbound', 'name' => 'activefeaturecode[exten]', 'useNames' => TRUE, 'optGroups' => FALSE, 'forDependent' => TRUE), isset($activefeaturecode['exten']) ? $activefeaturecode['exten'] : NULL); jquery::addQuery('#activefeaturecode_inbound')->dependent('{ parent: \'activefeaturecode_class_type\', group: \'common_class\' }'); ?> </div> <div class="field"> <?php echo form::label('activefeaturecode[leg]', 'Allow feature code from: '); echo form::dropdown('activefeaturecode[leg]', array('b' => 'Callee', 'a' => 'Caller')); ?> </div> </div> <script type="text/javascript"> $(function() {
<div> <?php echo __('If this call is not answered transfer the caller to'); ?> </div> <?php $selectedClass = NULL; if (isset($terminate['transfer'])) { $selectedClass = numbering::getAssignedPoolByNumber($terminate['transfer']); } echo numbering::poolsDropdown(array('name' => 'number{{number_id}}_transfer_class', 'forDependent' => TRUE), $selectedClass); echo __(' named '); echo numbering::numbersDropdown(array('id' => 'number{{number_id}}_targets', 'name' => 'number{{number_id}}[dialplan][terminate][transfer]', 'forDependent' => TRUE), isset($terminate['transfer']) ? $terminate['transfer'] : NULL); ?> </div> </div> <input type="hidden" value="{{terminate_action}}" name="number{{number_id}}[dialplan][terminate][action]" id="number{{number_id}}_terminate_action"/> <?php echo form::close_section(); ?> <?php jquery::addPlugin(array('accordion', 'dependent')); ?>
echo form::open_section('Outside this Range'); ?> <div class="field" style="text-align: center;"> During all other times route calls to a <?php if (isset($timeofday['outside_number_id'])) { $selectedClass = numbering::getAssignedPoolByNumber($timeofday['outside_number_id']); } else { $selectedClass = NULL; } echo numbering::poolsDropdown(array('name' => 'outside_class_type', 'forDependent' => TRUE), $selectedClass); echo " named "; echo numbering::numbersDropdown(array('id' => 'timeofday_outside', 'name' => 'timeofday[outside_number_id]', 'useNames' => TRUE, 'optGroups' => FALSE, 'forDependent' => TRUE), isset($timeofday['outside_number_id']) ? $timeofday['outside_number_id'] : NULL); jquery::addQuery('#timeofday_outside')->dependent('{ parent: \'outside_class_type\', group: \'common_class\' }'); ?> </div> <?php echo form::close_section(); ?> <?php echo form::close_section(); ?> <?php if (isset($views)) {
<?php echo form::open_section('Fax Autodetect'); ?> <div class="field"> <?php echo form::label(array('for' => 'fax[autodetect]', 'hint' => 'Enable fax autodetect on this number.', 'help' => 'If enabled, the system will attempt to autodetect inbound faxes and transfer to the chosen extension if the inbound fax tone is detected.'), 'Enable Autodetection:'); echo form::checkbox('fax[autodetect]'); ?> </div> <div class="field"> <?php echo form::label(array('for' => 'fax[autodetect_number]', 'hint' => 'Transfer to this number on fax autodetect.', 'help' => 'The system will attempt to transfer the call to this extension if fax autodetect is enabled and the inbound fax tone is detected.'), 'Autodetection Transfer Number:'); echo numbering::numbersDropdown(array('name' => 'fax[autodetect_number]', 'classType' => 'FaxProfileNumber', 'optGroups' => FALSE)); ?> </div> <?php echo form::close_section();
<div style="text-align: center;"> <?php echo __('If this call is not answered transfer the caller to'); ?> <?php if (isset($number['dialplan']['terminate']['transfer'])) { $selectedClass = numbering::getAssignedPoolByNumber($number['dialplan']['terminate']['transfer']); } else { $selectedClass = NULL; } echo numbering::poolsDropdown($baseName . '_transfer_class', $selectedClass); echo __(' named '); echo numbering::numbersDropdown(array('id' => $baseName . '_targets', 'name' => $baseName . '[dialplan][terminate][transfer]', 'useNames' => TRUE, 'optGroups' => FALSE), isset($number['dialplan']['terminate']['transfer']) ? $number['dialplan']['terminate']['transfer'] : NULL); ?> </div> </div> <?php $action = 'hangup'; if (isset($number['dialplan']['terminate']['action'])) { $action = $number['dialplan']['terminate']['action']; } ?> <input type="hidden" value="<?php echo empty($action) ? 'hangup' : $action;
echo form::open_section('Inbound Routing'); ?> <div class="field"> <?php echo form::label('xmpp[registry][exten]', 'Route incoming calls to:'); ?> <?php if (isset($xmpp['registry']['exten'])) { $selectedClass = numbering::getAssignedPoolByNumber($xmpp['registry']['exten']); } else { $selectedClass = NULL; } echo numbering::poolsDropdown(array('name' => 'xmpp_class_type', 'forDependent' => TRUE), $selectedClass); echo " named "; echo numbering::numbersDropdown(array('id' => 'xmpp_inbound', 'name' => 'xmpp[registry][exten]', 'useNames' => TRUE, 'optGroups' => FALSE, 'forDependent' => TRUE), isset($xmpp['registry']['exten']) ? $xmpp['registry']['exten'] : NULL); jquery::addQuery('#xmpp_inbound')->dependent('{ parent: \'xmpp_class_type\', group: \'common_class\' }'); ?> </div> <div class="field"> <?php echo form::label('xmpp[registry][inbound_context]', 'Default Incoming Context:'); echo numbering::selectContext('xmpp[registry][inbound_context]', isset($xmpp['registry']['inbound_context']) ? $xmpp['registry']['inbound_context'] : ''); ?> </div> <?php echo form::close_section(); ?>