|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
|
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
|
|
|
<link rel="stylesheet" href="admin/css/validationEngine.jquery.css" type="text/css" media="screen" title="no title" charset="ISO-8859-1" />
|
|
|
|
|
<script type="text/javascript" src="admin/js/jquery-1.4.js"></script>
|
|
|
|
|
<script type="text/javascript" src="admin/js/jquery.blockUI.js?v2.29"></script>
|
|
|
|
|
<script src="admin/js/jquery.min.js" type="text/javascript"></script>
|
|
|
|
|
<script src="admin/js/jquery.validationEngine.js" type="text/javascript"></script>
|
|
|
|
|
<script src="admin/js/jquery.validationEngine-en.js" type="text/javascript"></script>
|
|
|
|
|
<script src="admin/js/pbxAjax.js" type="text/javascript"></script>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
$("#form1").validationEngine({
|
|
|
|
|
sucess: function () {
|
|
|
|
|
document.form1.submit();
|
|
|
|
|
},
|
|
|
|
|
failure: function () {}
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
<link href="admin/css/forms.css" rel="stylesheet" type="text/css">
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
<!--
|
|
|
|
|
body {
|
|
|
|
|
background-color: #EAEAEA;
|
|
|
|
|
margin-left: 0px;
|
|
|
|
|
margin-top: 0px;
|
|
|
|
|
margin-right: 0px;
|
|
|
|
|
margin-bottom: 0px;
|
|
|
|
|
}
|
|
|
|
|
-->
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
$acao = $_GET["acao"];
|
|
|
|
|
|
|
|
|
|
if ($acao == "salva") {
|
|
|
|
|
echo $context = trim($_POST["context"]);
|
|
|
|
|
$callerid = trim($_POST["callerid"]);
|
|
|
|
|
$allowguest = trim($_POST["allowguest"]);
|
|
|
|
|
$allowoverlap = trim($_POST["allowoverlap"]);
|
|
|
|
|
$allowtransfer = trim($_POST["allowtransfer"]);
|
|
|
|
|
$realm = trim($_POST["realm"]);
|
|
|
|
|
$bindport = trim($_POST["bindport"]);
|
|
|
|
|
$bindaddr = trim($_POST["bindaddr"]);
|
|
|
|
|
$srvlookup = trim($_POST["srvlookup"]);
|
|
|
|
|
$pedantic = trim($_POST["pedantic"]);
|
|
|
|
|
$tos_sip = trim($_POST["tos_sip"]);
|
|
|
|
|
$tos_audio = trim($_POST["tos_audio"]);
|
|
|
|
|
$tos_video = trim($_POST["tos_video"]);
|
|
|
|
|
$maxexpiry = trim($_POST["maxexpiry"]);
|
|
|
|
|
$minexpiry = trim($_POST["minexpiry"]);
|
|
|
|
|
$defaultexpiry = trim($_POST["defaultexpiry"]);
|
|
|
|
|
$t1min = trim($_POST["t1min"]);
|
|
|
|
|
$notifymimetype = trim($_POST["notifymimetype"]);
|
|
|
|
|
$checkmwi = trim($_POST["checkmwi"]);
|
|
|
|
|
$buggymwi = trim($_POST["buggymwi"]);
|
|
|
|
|
$vmexten = trim($_POST["vmexten"]);
|
|
|
|
|
$mohinterpret = trim($_POST["mohinterpret"]);
|
|
|
|
|
$mohsuggest = trim($_POST["mohsuggest"]);
|
|
|
|
|
$language = trim($_POST["language"]);
|
|
|
|
|
$relaxdtmf = trim($_POST["relaxdtmf"]);
|
|
|
|
|
$trustrpid = trim($_POST["trustrpid"]);
|
|
|
|
|
$sendrpid = trim($_POST["sendrpid"]);
|
|
|
|
|
$progressinband = trim($_POST["progressinband"]);
|
|
|
|
|
$useragent = trim($_POST["useragent"]);
|
|
|
|
|
$promiscredir = trim($_POST["promiscredir"]);
|
|
|
|
|
$userqphone = trim($_POST["userqphone"]);
|
|
|
|
|
$dtmfmode = trim($_POST["dtmfmode"]);
|
|
|
|
|
$compactheaders = trim($_POST["compactheaders"]);
|
|
|
|
|
$videosupport = trim($_POST["videosupport"]);
|
|
|
|
|
$maxcallbitrate = trim($_POST["maxcallbitrate"]);
|
|
|
|
|
$alwaysauthreject = trim($_POST["alwaysauthreject"]);
|
|
|
|
|
$g726nonstandard = trim($_POST["g726nonstandard"]);
|
|
|
|
|
$matchexterniplocally = trim($_POST["matchexterniplocally"]);
|
|
|
|
|
$regcontext = trim($_POST["regcontext"]);
|
|
|
|
|
$rtptimeout = trim($_POST["rtptimeout"]);
|
|
|
|
|
$rtpholdtimeout = trim($_POST["rtpholdtimeout"]);
|
|
|
|
|
$rtpkeepalive = trim($_POST["rtpkeepalive"]);
|
|
|
|
|
$sipdebug = trim($_POST["sipdebug"]);
|
|
|
|
|
$recordhistory = trim($_POST["recordhistory"]);
|
|
|
|
|
$dumphistory = trim($_POST["dumphistory"]);
|
|
|
|
|
$allowsubscribe = trim($_POST["allowsubscribe"]);
|
|
|
|
|
$subscribecontext = trim($_POST["subscribecontext"]);
|
|
|
|
|
$notifyringing = trim($_POST["notifyringing"]);
|
|
|
|
|
$notifyhold = trim($_POST["notifyhold"]);
|
|
|
|
|
$limitonpeers = trim($_POST["limitonpeers"]);
|
|
|
|
|
$t38pt_udptl = trim($_POST["t38pt_udptl"]);
|
|
|
|
|
$externip = trim($_POST["externip"]);
|
|
|
|
|
$externhost = trim($_POST["externhost"]);
|
|
|
|
|
$externrefresh = trim($_POST["externrefresh"]);
|
|
|
|
|
$localnet = trim($_POST["localnet"]);
|
|
|
|
|
$extranet = trim($_POST["extranet"]);
|
|
|
|
|
$nat = trim($_POST["nat"]);
|
|
|
|
|
$canreinvite = trim($_POST["canreinvite"]);
|
|
|
|
|
$directrtpsetup = trim($_POST["directrtpsetup"]);
|
|
|
|
|
$rtcachefriends = trim($_POST["rtcachefriends"]);
|
|
|
|
|
$rtsavesysname = trim($_POST["rtsavesysname"]);
|
|
|
|
|
$rtupdate = trim($_POST["rtupdate"]);
|
|
|
|
|
$rtautoclear = trim($_POST["rtautoclear"]);
|
|
|
|
|
$ignoreregexpire = trim($_POST["ignoreregexpire"]);
|
|
|
|
|
$domain = trim($_POST["domain"]);
|
|
|
|
|
$autodomain = trim($_POST["autodomain"]);
|
|
|
|
|
$allowexternaldomains = trim($_POST["allowexternaldomains"]);
|
|
|
|
|
$fromdomain = trim($_POST["fromdomain"]);
|
|
|
|
|
$jbenable = trim($_POST["jbenable"]);
|
|
|
|
|
$jbforce = trim($_POST["jbforce"]);
|
|
|
|
|
$jbmaxsize = trim($_POST["jbmaxsize"]);
|
|
|
|
|
$jbresyncthreshold = trim($_POST["jbresyncthreshold"]);
|
|
|
|
|
$jbimpl = trim($_POST["jbimpl"]);
|
|
|
|
|
$jblog = trim($_POST["jblog"]);
|
|
|
|
|
$auth = trim($_POST["auth"]);
|
|
|
|
|
|
|
|
|
|
//REALIZA BACKUP BO BANCO
|
|
|
|
|
//($dbcon,'pbx_sip_general','U','','update','SIP_GENERAL');
|
|
|
|
|
|
|
|
|
|
$query = "UPDATE pbx_sip_general
|
|
|
|
|
SET context='$context', callerid='$callerid', allowguest='$allowguest',
|
|
|
|
|
realm='$realm', bindport='$bindport', bindaddr='$bindaddr',
|
|
|
|
|
tos_sip='$tos_sip', tos_audio='$tos_audio', tos_video='$tos_video',
|
|
|
|
|
maxexpiry='$maxexpiry', minexpiry='$minexpiry',notifymimetype='$notifymimetype',
|
|
|
|
|
buggymwi='$buggymwi', vmexten='$vmexten', mohinterpret='$mohinterpret', mohsuggest='$mohsuggest',
|
|
|
|
|
language='$language', relaxdtmf='$relaxdtmf', trustrpid='$trustrpid', sendrpid='$sendrpid', progressinband='$progressinband',
|
|
|
|
|
useragent='$useragent', promiscredir='$promiscredir', userqphone='$userqphone', dtmfmode='$dtmfmode', compactheaders='$compactheaders',
|
|
|
|
|
videosupport='$videosupport', alwaysauthreject='$alwaysauthreject', g726nonstandard='$g726nonstandard',
|
|
|
|
|
matchexterniplocally='$matchexterniplocally', regcontext='$regcontext',
|
|
|
|
|
rtpkeepalive='$rtpkeepalive', sipdebug='$sipdebug', recordhistory='$recordhistory', dumphistory='$dumphistory', allowsubscribe='$allowsubscribe',
|
|
|
|
|
subscribecontext='$subscribecontext', notifyringing='$notifyringing', notifyhold='$notifyhold', limitonpeers='$limitonpeers',
|
|
|
|
|
t38pt_udptl='$t38pt_udptl', externip='$externip', externhost='$externhost', localnet='$localnet', extranet='$extranet',
|
|
|
|
|
nat='$nat', canreinvite='$canreinvite', directrtpsetup='$directrtpsetup', rtcachefriends='$rtcachefriends', rtsavesysname='$rtsavesysname',
|
|
|
|
|
rtupdate='$rtupdate', rtautoclear='$rtautoclear', ignoreregexpire='$ignoreregexpire', domain='$domain', autodomain='$autodomain',
|
|
|
|
|
allowexternaldomains='$allowexternaldomains', fromdomain='$fromdomain', jbenable='$jbenable', jbforce='$jbforce',
|
|
|
|
|
jbmaxsize='$jbmaxsize', jbresyncthreshold='$jbresyncthreshold', jbimpl='$jbimpl', jblog='$jblog', auth='$auth'";
|
|
|
|
|
// $result = pg_query($dbcon, $query);
|
|
|
|
|
|
|
|
|
|
pg_query($dbcon, $query); //gera arquivos e executa o reload dos dados no asterisk
|
|
|
|
|
gera_arquivos($dbcon, 'SIP_GENERAL');
|
|
|
|
|
?>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
fecha_popup();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$query = "SELECT * FROM pbx_sip_general limit 1";
|
|
|
|
|
$result = pg_query($dbcon, $query);
|
|
|
|
|
while ($dados = pg_fetch_array($result)) {
|
|
|
|
|
?>
|
|
|
|
|
<link href="admin/css/forms.css" rel="stylesheet" type="text/css">
|
|
|
|
|
<form id="form1" name="form1" action="index.php?idProg=11109&pbxRequest=1&acao=salva" method="post">
|
|
|
|
|
<input name="callerid" type="hidden" class="validate[optional,custom[onlyNumber],length[0,100]] caixas" id="callerid2" value="<?php echo $dados["callerid"]; ?>" size="10" maxlength="20" />
|
|
|
|
|
|
|
|
|
|
<table width="460" border="1" align="center" cellpadding="0" cellspacing="0" class="tabela">
|
|
|
|
|
<tr bordercolor="#EAEAEA" bgcolor="#EAEAEA" background="img/button03.gif">
|
|
|
|
|
<td width="405" align="center" background="img/button03.gif" class="cabecalho">CONFIGURAÇÃO GLOBAL DO SIP</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr bordercolor="#EAEAEA" bgcolor="#EAEAEA">
|
|
|
|
|
<td class="labels"><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="33%"><fieldset>
|
|
|
|
|
<legend class="labels">Aceita Convidados:</legend>
|
|
|
|
|
<?php
|
|
|
|
|
switch (trim($dados["allowguest"])) {
|
|
|
|
|
case 'yes': $allowguest1 = 'checked';
|
|
|
|
|
break;
|
|
|
|
|
case 'no': $allowguest2 = 'checked';
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<input name="allowguest" type="radio" value="yes" <?php echo $allowguest1; ?> />
|
|
|
|
|
Sim
|
|
|
|
|
<input name="allowguest" type="radio" value="no" <?php echo $allowguest2; ?> />
|
|
|
|
|
Não
|
|
|
|
|
</fieldset></td>
|
|
|
|
|
<td width="33%"><fieldset>
|
|
|
|
|
<legend class="labels"> Interface de Rede :</legend>
|
|
|
|
|
<input name="bindaddr" type="text" class="caixas" id="bindaddr2" value="<?php echo $dados["bindaddr"]; ?>" size="15" maxlength="20" />
|
|
|
|
|
|
|
|
|
|
</fieldset></td>
|
|
|
|
|
<td width="33%"><fieldset>
|
|
|
|
|
<legend class="labels">Porta:</legend>
|
|
|
|
|
<input name="bindport" type="text" class="validate[required,custom[onlyNumber],length[0,100]] caixas" id="bindport2" value="<?php echo $dados["bindport"]; ?>" size="10" maxlength="6" />
|
|
|
|
|
|
|
|
|
|
</fieldset></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr bordercolor="#EAEAEA" bgcolor="#EAEAEA">
|
|
|
|
|
<td class="labels"><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="33%"><fieldset>
|
|
|
|
|
<legend class="labels">tos_sip:</legend>
|
|
|
|
|
<select name="tos_sip" class="validate[required] caixas" id="select">
|
|
|
|
|
<option value="cs0" <?php
|
|
|
|
|
if (trim($dados["tos_sip"]) == 'cs0') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs0</option>
|
|
|
|
|
<option value="cs1" <?php
|
|
|
|
|
if (trim($dados["tos_sip"]) == 'cs1') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs1</option>
|
|
|
|
|
<option value="cs2" <?php
|
|
|
|
|
if (trim($dados["tos_sip"]) == 'cs2') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs2</option>
|
|
|
|
|
<option value="cs3" <?php
|
|
|
|
|
if (trim($dados["tos_sip"]) == 'cs3') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs3</option>
|
|
|
|
|
<option value="cs4" <?php
|
|
|
|
|
if (trim($dados["tos_sip"]) == 'cs4') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs4</option>
|
|
|
|
|
<option value="cs5" <?php
|
|
|
|
|
if (trim($dados["tos_sip"]) == 'cs5') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs5</option>
|
|
|
|
|
<option value="cs6" <?php
|
|
|
|
|
if (trim($dados["tos_sip"]) == 'cs6') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs6</option>
|
|
|
|
|
<option value="cs7" <?php
|
|
|
|
|
if (trim($dados["tos_sip"]) == 'cs7') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs7</option>
|
|
|
|
|
<option value="af11" <?php
|
|
|
|
|
if (trim($dados["tos_sip"]) == 'af11') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af11</option>
|
|
|
|
|
<option value="af12" <?php
|
|
|
|
|
if (trim($dados["tos_sip"]) == 'af12') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af12</option>
|
|
|
|
|
<option value="af13" <?php
|
|
|
|
|
if (trim($dados["tos_sip"]) == 'af13') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af13</option>
|
|
|
|
|
<option value="af21" <?php
|
|
|
|
|
if (trim($dados["tos_sip"]) == 'af21') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af21</option>
|
|
|
|
|
<option value="af22" <?php
|
|
|
|
|
if (trim($dados["tos_sip"]) == 'af22') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af22</option>
|
|
|
|
|
<option value="af23" <?php
|
|
|
|
|
if (trim($dados["tos_sip"]) == 'af23') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af23</option>
|
|
|
|
|
<option value="af31" <?php
|
|
|
|
|
if (trim($dados["tos_sip"]) == 'af31') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af31</option>
|
|
|
|
|
<option value="af32" <?php
|
|
|
|
|
if (trim($dados["tos_sip"]) == 'af32') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af32</option>
|
|
|
|
|
<option value="af33" <?php
|
|
|
|
|
if (trim($dados["tos_sip"]) == 'af33') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af33</option>
|
|
|
|
|
<option value="af41" <?php
|
|
|
|
|
if (trim($dados["tos_sip"]) == 'af41') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af41</option>
|
|
|
|
|
<option value="af42" <?php
|
|
|
|
|
if (trim($dados["tos_sip"]) == 'af42') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af42</option>
|
|
|
|
|
<option value="af43" <?php
|
|
|
|
|
if (trim($dados["tos_sip"]) == 'af43') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af43</option>
|
|
|
|
|
<option value="ef" <?php
|
|
|
|
|
if (trim($dados["tos_sip"]) == 'ef') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>ef</option>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</fieldset></td>
|
|
|
|
|
<td width="33%"><fieldset>
|
|
|
|
|
<legend class="labels">tos_audio:</legend>
|
|
|
|
|
<select name="tos_audio" id="select2" class="validate[required] caixas">
|
|
|
|
|
<option value="cs0" <?php
|
|
|
|
|
if (trim($dados["tos_audio"]) == 'cs0') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs0</option>
|
|
|
|
|
<option value="cs1" <?php
|
|
|
|
|
if (trim($dados["tos_audio"]) == 'cs1') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs1</option>
|
|
|
|
|
<option value="cs2" <?php
|
|
|
|
|
if (trim($dados["tos_audio"]) == 'cs2') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs2</option>
|
|
|
|
|
<option value="cs3" <?php
|
|
|
|
|
if (trim($dados["tos_audio"]) == 'cs3') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs3</option>
|
|
|
|
|
<option value="cs4" <?php
|
|
|
|
|
if (trim($dados["tos_audio"]) == 'cs4') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs4</option>
|
|
|
|
|
<option value="cs5" <?php
|
|
|
|
|
if (trim($dados["tos_audio"]) == 'cs5') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs5</option>
|
|
|
|
|
<option value="cs6" <?php
|
|
|
|
|
if (trim($dados["tos_audio"]) == 'cs6') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs6</option>
|
|
|
|
|
<option value="cs7" <?php
|
|
|
|
|
if (trim($dados["tos_audio"]) == 'cs7') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs7</option>
|
|
|
|
|
<option value="af11" <?php
|
|
|
|
|
if (trim($dados["tos_audio"]) == 'af11') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af11</option>
|
|
|
|
|
<option value="af12" <?php
|
|
|
|
|
if (trim($dados["tos_audio"]) == 'af12') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af12</option>
|
|
|
|
|
<option value="af13" <?php
|
|
|
|
|
if (trim($dados["tos_audio"]) == 'af13') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af13</option>
|
|
|
|
|
<option value="af21" <?php
|
|
|
|
|
if (trim($dados["tos_audio"]) == 'af21') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af21</option>
|
|
|
|
|
<option value="af22" <?php
|
|
|
|
|
if (trim($dados["tos_audio"]) == 'af22') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af22</option>
|
|
|
|
|
<option value="af23" <?php
|
|
|
|
|
if (trim($dados["tos_audio"]) == 'af23') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af23</option>
|
|
|
|
|
<option value="af31" <?php
|
|
|
|
|
if (trim($dados["tos_audio"]) == 'af31') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af31</option>
|
|
|
|
|
<option value="af32" <?php
|
|
|
|
|
if (trim($dados["tos_audio"]) == 'af32') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af32</option>
|
|
|
|
|
<option value="af33" <?php
|
|
|
|
|
if (trim($dados["tos_audio"]) == 'af33') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af33</option>
|
|
|
|
|
<option value="af41" <?php
|
|
|
|
|
if (trim($dados["tos_audio"]) == 'af41') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af41</option>
|
|
|
|
|
<option value="af42" <?php
|
|
|
|
|
if (trim($dados["tos_audio"]) == 'af42') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af42</option>
|
|
|
|
|
<option value="af43" <?php
|
|
|
|
|
if (trim($dados["tos_audio"]) == 'af43') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af43</option>
|
|
|
|
|
<option value="ef" <?php
|
|
|
|
|
if (trim($dados["tos_audio"]) == 'ef') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>ef</option>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</fieldset></td>
|
|
|
|
|
<td width="33%"><fieldset>
|
|
|
|
|
<legend class="labels">tos_video:</legend>
|
|
|
|
|
<select name="tos_video" class="validate[required] caixas" id="select3">
|
|
|
|
|
<option value="cs0" <?php
|
|
|
|
|
if (trim($dados["tos_video"]) == 'cs0') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs0</option>
|
|
|
|
|
<option value="cs1" <?php
|
|
|
|
|
if (trim($dados["tos_video"]) == 'cs1') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs1</option>
|
|
|
|
|
<option value="cs2" <?php
|
|
|
|
|
if (trim($dados["tos_video"]) == 'cs2') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs2</option>
|
|
|
|
|
<option value="cs3" <?php
|
|
|
|
|
if (trim($dados["tos_video"]) == 'cs3') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs3</option>
|
|
|
|
|
<option value="cs4" <?php
|
|
|
|
|
if (trim($dados["tos_video"]) == 'cs4') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs4</option>
|
|
|
|
|
<option value="cs5" <?php
|
|
|
|
|
if (trim($dados["tos_video"]) == 'cs5') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs5</option>
|
|
|
|
|
<option value="cs6" <?php
|
|
|
|
|
if (trim($dados["tos_video"]) == 'cs6') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs6</option>
|
|
|
|
|
<option value="cs7" <?php
|
|
|
|
|
if (trim($dados["tos_video"]) == 'cs7') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>cs7</option>
|
|
|
|
|
<option value="af11" <?php
|
|
|
|
|
if (trim($dados["tos_video"]) == 'af11') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af11</option>
|
|
|
|
|
<option value="af12" <?php
|
|
|
|
|
if (trim($dados["tos_video"]) == 'af12') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af12</option>
|
|
|
|
|
<option value="af13" <?php
|
|
|
|
|
if (trim($dados["tos_video"]) == 'af13') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af13</option>
|
|
|
|
|
<option value="af21" <?php
|
|
|
|
|
if (trim($dados["tos_video"]) == 'af21') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af21</option>
|
|
|
|
|
<option value="af22" <?php
|
|
|
|
|
if (trim($dados["tos_video"]) == 'af22') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af22</option>
|
|
|
|
|
<option value="af23" <?php
|
|
|
|
|
if (trim($dados["tos_video"]) == 'af23') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af23</option>
|
|
|
|
|
<option value="af31" <?php
|
|
|
|
|
if (trim($dados["tos_video"]) == 'af31') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af31</option>
|
|
|
|
|
<option value="af32" <?php
|
|
|
|
|
if (trim($dados["tos_video"]) == 'af32') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af32</option>
|
|
|
|
|
<option value="af33" <?php
|
|
|
|
|
if (trim($dados["tos_video"]) == 'af33') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af33</option>
|
|
|
|
|
<option value="af41" <?php
|
|
|
|
|
if (trim($dados["tos_video"]) == 'af41') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af41</option>
|
|
|
|
|
<option value="af42" <?php
|
|
|
|
|
if (trim($dados["tos_video"]) == 'af42') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af42</option>
|
|
|
|
|
<option value="af43" <?php
|
|
|
|
|
if (trim($dados["tos_video"]) == 'af43') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>af43</option>
|
|
|
|
|
<option value="ef" <?php
|
|
|
|
|
if (trim($dados["tos_video"]) == 'ef') {
|
|
|
|
|
echo "selected";
|
|
|
|
|
}
|
|
|
|
|
?>>ef</option>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</fieldset></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr bordercolor="#EAEAEA" bgcolor="#EAEAEA">
|
|
|
|
|
<td class="labels"><table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="50%"><fieldset><legend class="labels">
|
|
|
|
|
Tempo maximo para expirar:</legend>
|
|
|
|
|
<input name="maxexpiry" type="text" class="validate[optional,custom[onlyNumber],length[0,100]] caixas" id="maxexpiry2" value="<?php echo $dados["maxexpiry"]; ?>" size="10" maxlength="6" />
|
|
|
|
|
|
|
|
|
|
</fieldset></td>
|
|
|
|
|
<td><fieldset><legend class="labels">
|
|
|
|
|
Tempo minimo para expirar:</legend>
|
|
|
|
|
<input name="minexpiry" type="text" class="validate[optional,custom[onlyNumber],length[0,100]] caixas" id="minexpiry2" value="<?php echo $dados["minexpiry"]; ?>" size="10" maxlength="10" />
|
|
|
|
|
|
|
|
|
|
</fieldset></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr bordercolor="#EAEAEA" bgcolor="#EAEAEA">
|
|
|
|
|
<td class="labels">
|
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend class="labels">Debug:</legend>
|
|
|
|
|
<?php
|
|
|
|
|
switch (trim($dados["sipdebug"])) {
|
|
|
|
|
case 'yes': $sipdebug1 = 'checked';
|
|
|
|
|
break;
|
|
|
|
|
case 'no': $sipdebug2 = 'checked';
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<input name="sipdebug" type="radio" value="yes" <?php echo $sipdebug1; ?> />
|
|
|
|
|
Sim
|
|
|
|
|
<input name="sipdebug" type="radio" value="no" <?php echo $sipdebug2; ?> />
|
|
|
|
|
Não
|
|
|
|
|
</fieldset>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend class="labels">relaxdtmf:</legend>
|
|
|
|
|
<?php
|
|
|
|
|
switch (trim($dados["relaxdtmf"])) {
|
|
|
|
|
case 'yes': $relaxdtmf1 = 'checked';
|
|
|
|
|
break;
|
|
|
|
|
case 'no': $relaxdtmf2 = 'checked';
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<input name="relaxdtmf" type="radio" value="yes" <?php echo $relaxdtmf1; ?> />
|
|
|
|
|
Sim
|
|
|
|
|
<input name="relaxdtmf" type="radio" value="no" <?php echo $relaxdtmf2; ?> />
|
|
|
|
|
Não
|
|
|
|
|
</fieldset>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr bordercolor="#EAEAEA" bgcolor="#EAEAEA">
|
|
|
|
|
<td class="labels">
|
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="50%">
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend class="labels"> Ip Público:</legend>
|
|
|
|
|
<input name="externip" type="text" class="validate[optional,length[0,120]] caixas" id="externip" value="<?php echo $dados["externip"]; ?>" size="35" maxlength="120" />
|
|
|
|
|
</fieldset>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend class="labels">Host:</legend>
|
|
|
|
|
<input name="externhost" type="text" class="validate[optional,length[0,120]] caixas" id="externhost" value="<?php echo $dados["externhost"]; ?>" size="35" maxlength="120" />
|
|
|
|
|
</fieldset>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr bordercolor="#EAEAEA" bgcolor="#EAEAEA">
|
|
|
|
|
<td class="labels">
|
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="100%">
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend class="labels"> Redes:</legend>
|
|
|
|
|
<textarea name="localnet" cols="80" rows="6" class="caixas" id="localnet"><?php echo $dados["localnet"]; ?></textarea>
|
|
|
|
|
</fieldset>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="100%">
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend class="labels"> Redes Permitidas para Autentica<EFBFBD><EFBFBD>o de Ramais:</legend>
|
|
|
|
|
<textarea name="extranet" cols="80" rows="6" class="caixas" id="extranet"><?php echo $dados["extranet"]; ?></textarea>
|
|
|
|
|
</fieldset>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr bordercolor="#EAEAEA" bgcolor="#EAEAEA">
|
|
|
|
|
<td class="labels"> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr bordercolor="#EAEAEA" bgcolor="#EAEAEA">
|
|
|
|
|
<td><div align="center">
|
|
|
|
|
<input name="Submit" type="button" class="labels" onclick="fecha_popup()" value="Fechar" id="btfechar">
|
|
|
|
|
<input name="Submit" type="submit" class="labels" value="Salvar">
|
|
|
|
|
</div></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</form>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
|
|
|
|
|
$('#btfechar').click(function () {
|
|
|
|
|
var $ = window.parent.$;
|
|
|
|
|
var jQuery = window.parent.jQuery;
|
|
|
|
|
$.unblockUI({fadeOut: 200});
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|