<div id="active_feature_code_options"> <div class="field"> <?php echo form::label('activefeaturecode[number]', 'Feature Code:'); echo form::input('activefeaturecode[number]'); ?> </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')); ?>
</h3> <div style="text-align: center;"> <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(); ?>
<h3> <a href="#" rel="transfer">Transfer</a> </h3> <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'])) {
<?php echo form::close_section(); ?> <?php 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 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'] : '');