Exemple #1
0
echo locations::dropdown(array('name' => 'sipinterface[registry][force_register_domain]', 'nullOption' => 'Auto (multitenant)', 'multitenancy' => FALSE));
?>
        </div>
    
    <?php 
echo form::close_section();
?>

    <?php 
echo form::open_section('Inbound Calls');
?>

        <div class="field">
        <?php 
echo form::label('sipinterface[context_id]', 'Default Incoming Context:');
echo numbering::selectContext(array('nullOption' => 'Auto (multitenant)', 'name' => 'sipinterface[context_id]', 'all' => TRUE), $sipinterface['context_id']);
?>
        </div>

    <?php 
echo form::close_section();
?>

    <?php 
if (isset($views)) {
    echo subview::renderAsSections($views);
}
?>

    <?php 
echo form::close(TRUE);
Exemple #2
0
<?php

echo form::open_section('Options');
?>
	<div class="field">
		<?php 
echo form::label(array('for' => 'number{{number_id}}[dialplan][dbndir][trancontextid]', 'hint' => 'Context to use when transfering', 'help' => 'Context to transfer the calls to.'), 'Transfer Context:');
echo numbering::selectContext('number{{number_id}}[dialplan][dbndir][trancontextid]');
?>
	</div>
<?php 
echo form::close_section();
Exemple #3
0
        </div>

    <?php 
echo form::close_section();
?>

    <?php 
echo form::open_section('Dial by Extension');
?>

        <div class="field">
            <?php 
echo form::label(array('for' => 'autoattendant[extension_context_id]', 'hint' => 'Numbers that callers can directly dial into'), 'Internal Extension Context:');
?>
            <?php 
echo numbering::selectContext(array('name' => 'autoattendant[extension_context_id]', 'nullOption' => 'Disabled'));
?>
        </div>

        <div class="field">
            <?php 
echo form::label('autoattendant[extension_digits]', 'Maximum Extension Length:');
?>
            <?php 
echo form::input('autoattendant[extension_digits]');
?>
            <?php 
//javascript::codeBlock('$("#autoattendant_extension_digits").spinner({max: 9, min: 3});');
?>
        </div>
Exemple #4
0
        </div>

    <?php echo form::close_section(); ?>

    <?php echo form::open_section('Call Routing'); ?>

        <div class="field">
        <?php
            echo form::label('number[location_id]', 'Location:');
            echo locations::dropdown('number[location_id]');
        ?>
        </div>
    
        <div class="field">
            <?php
                echo form::label(array(
                        'for' => 'device[context_id]',
                        'hint' => 'Default outbound call context',
                        'help' => 'This field determines the phone numbers a user can call. All phone numbers and SIP trunks associated with the selected context can be dialed by this user.<BR><BR>Note that, in most cases, the user\'s device must authenticate in order for this to work. Note that if this is not set, the context for the default interface a call is received on is used instead.'
                    ),
                    'Default Context:'
                );
            ?>
            <?php echo numbering::selectContext('number[context_id]'); ?>
        </div>

    <?php echo form::close_section(); ?>

    <?php echo form::close(TRUE); ?>

</div>
Exemple #5
0
<?php

echo form::open_section('Incoming Context');
?>
    <div class="field">
    <?php 
echo form::label('trunk[context_id]', 'Default Incoming Context:');
echo numbering::selectContext('trunk[context_id]', $trunk['context_id']);
?>
    </div>
<?php 
echo form::close_section();
Exemple #6
0
echo locations::dropdown(array('name' => 'sipinterface[registry][force_register_domain]', 'nullOption' => 'None', 'multitenancy' => FALSE));
?>
        </div>
    
    <?php 
echo form::close_section();
?>

    <?php 
echo form::open_section('Inbound Calls');
?>

        <div class="field">
        <?php 
echo form::label('sipinterface[context_id]', 'Default Incoming Context:');
echo numbering::selectContext(array('name' => 'sipinterface[context_id]', 'all' => TRUE), $sipinterface['context_id']);
?>
        </div>

    <?php 
echo form::close_section();
?>

    <?php 
if (isset($views)) {
    echo subview::renderAsSections($views);
}
?>

    <?php 
echo form::close(TRUE);
Exemple #7
0
    $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();
?>

    <?php 
echo form::open_section('Route Outbound Calls Matching...');
?>

        <?php 
foreach ($outboundPatterns as $pattern) {
    ?>
Exemple #8
0
        <?php 
echo form::checkbox('vmalert[enabled]');
?>
    </div>
    <div id="vmalert-container">
        <div class="field">
        <?php 
echo form::label('vmalert[number]', 'Number to dial:');
echo form::input('vmalert[number]');
?>
        </div>

        <div class="field">
            <?php 
echo form::label('vmalert[context]', 'Context to dial from:');
echo numbering::selectContext('vmalert[context]', isset($vmalert['context']) ? $vmalert['context'] : '');
?>
        </div>
    </div>

<?php 
echo form::close_section();
?>

<script type="text/javascript">
    $(function() {
        if(!$("#vmalert_enabled").attr("checked")) {
            $("#vmalert-container").hide();
        }

        $("#vmalert_enabled").click(function() {
Exemple #9
0
        </div>

    <?php 
echo form::close_section();
?>

    <?php 
echo form::open_section('Call Routing');
?>

        <div class="field">
            <?php 
echo form::label(array('for' => 'device[context_id]', 'hint' => 'Default outbound call context', 'help' => 'This field determines the phone numbers a user can call. All phone numbers and SIP trunks associated with the selected context can be dialed by this user.<BR><BR>Note that, in most cases, the user\'s device must authenticate in order for this to work. Note that if this is not set, the context for the default interface a call is received on is used instead.'), 'Outbound Context:');
?>
            <?php 
echo numbering::selectContext('device[context_id]');
?>
        </div>

        <div class="field">
            <?php 
echo form::label('device[registry][anonymous_reject]', 'Reject Anonymous Calls');
?>
            <?php 
echo form::checkbox('device[registry][anonymous_reject]');
?>
        </div>

    <?php 
echo form::close_section();
?>