echo form::label(array('for' => 'sipinterface[registry][log_auth_failures]', 'help' => 'Write to logfile when authentication fails (e.g. wrong login/pass). Used by fail2ban'), 'Log authentication failures:'); echo form::checkbox('sipinterface[registry][log_auth_failures]'); ?> </div> <div class="field"> <?php echo form::label(array('for' => 'sipinterface[registry][compact_headers]', 'help' => 'Use SIP-compliant compact headers. Useful to fix broken UDP, where the packets are exceeding the size the router allows'), 'Use Compact Headers:'); echo form::checkbox('sipinterface[registry][compact_headers]'); ?> </div> <div class="field"> <?php echo form::label('Default Interface:'); echo sipinterfaces::dropdown('sipinterface[registry][default_sipinterface_id]'); ?> </div> <?php echo form::close_section(); ?> <?php if (kohana::config('sipinterface.allow_seperate_media_ip')) { ?> <?php echo form::open_section('Media'); ?>
<?php echo form::open_section('Interface Management'); ?> <div class="field"> <?php echo form::label('Bind to Interface:'); $options = array('name' => 'sipinterface[sipinterface_id]'); if ($base == 'trunk') { $options += array('default_first' => FALSE, 'unauth_before_auth' => TRUE); } else { if ($base == 'location') { $options['null_option'] = 'Default (' . SipInterface::get_default('name') . ')'; } } echo sipinterfaces::dropdown($options); ?> </div> <?php echo form::close_section();