⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 trunks.html.svn-base

📁 asterisk-gui asterisk网关接口编程 控制asterisk的接口
💻 SVN-BASE
📖 第 1 页 / 共 5 页
字号:
			w_new = v_new + Number(get_guiVolValue[ String(k) ]) ;			updaterequest += build_action('append', h, g , "gui_volume", u_new); h++;			updaterequest += build_action('append', h, g , "gui_fxooffset", v_new); h++;			updaterequest += build_action('append', h, g , "rxgain", w_new); h++;			updaterequest += build_action('append', h, g , "txgain", '0.0'); h++;			updaterequest += build_action('append', h, g , "channel", j ); h++;		}		var m = deleteUrl + updaterequest ;		makerequest( 'u','users.conf', m, function(t){ audioLevels_Cancel(); } );	};	config2json( 'fxotune.conf', 1 , fxotune_conf_loaded );}</script><body id="foo" onload="localajaxinit()"  bgcolor="EFEFEF"   onunload="free_mem()"><div class="mainscreenTitleBar">	<span style="margin-left: 4px;font-weight:bold;">Service Providers</span>	<span style="cursor: pointer; cursor: hand;" onclick="window.location.href=window.location.href;" >&nbsp;<img src="images/refresh.png" title=" Refresh " border=0 >&nbsp;</span></div><select disabled size="1" id="devices" style="display:none"></select><input type='button' id='delete' value='Delete' style="display:none"><BR><center><font size="+1">List of Service Providers</font><table class="table_black" cellpadding=2 cellspacing=2 border=0 align=center width=500 id="table_one">	<tr>	<td width=40>S.No</td>		<td width="200">Service Provider</td>		<td>Type</td>		<td width="90" align="center"></td>	</tr></table><div style="width:500;height:250; overflow :auto;">	<table id="serviceproviderstable" cellpadding=2 cellspacing=1 border=0 align=center width=500></table></div><input type='button' id='new' value='Add Service Provider'></center><!-- UsersContent DIV --><div id="userscontent" STYLE="display:none; position: absolute; left: 20; top: 40; width:500; height:400;  background-color:#F4EFE5;   border-width: 1px; border-color: #7E5538; border-style: solid; z-index:5">	<table width="100%" cellpadding=0 cellspacing=0>		<TR bgcolor="#7E5538" style="background-image:url('images/title_gradient.gif');">		<TD  onmousedown="ASTGUI.startDrag(event , 'userscontent');" id="userscontent_title" style="cursor: move;color:#FFFFFF; font-size: 12px; font-weight:bold;" align="center"></TD>		<TD Height="20" width=15 align="center"  style="color:#FFFFFF; font-size: 12px; font-weight:bold;" onclick="$('cancel').click();">X</TD>		</TR>	</table><table align="center" width=470><tr>	<td class="field_text">	<!-- Provider type -->	<fieldset  tip="en,trunks,0" style="width:460px">		<select id='hiddenglobals' style="display:none"></select>		<input id="name" size=10  style="display:none">		<legend><B>&nbsp;Provider Type:&nbsp;</B></legend>		<LABEL FOR="trunkstyleanalog"><input name='trunkstyle' type='radio' id='trunkstyleanalog' value='analog'>Analog</LABEL>		<LABEL FOR="trunkstylevoip"><input name='trunkstyle' type='radio' id='trunkstylevoip' value='voip'>VoIP</LABEL>		<LABEL FOR="trunkstylecustomvoip"><input name='trunkstyle' type='radio' id='trunkstylecustomvoip' value='customvoip'>Custom VoIP</LABEL>	</fieldset>	<!-- Provider type -->	</td></tr><tr id='analog' style='display:none; height:280px'>	<td align="center">		<table align="center">		<tr>	<td style='width:80px' valign='top' class="field_text"  tip="en,trunks,2">				Lines:			</td>			<td>	<select multiple='true' id='zapchan' style='display:none'></select>				<div id="zapchan_analoglines" style='height:110px; width: 200px; overflow :auto; display:none'></div>			</td>		</tr>		</table>	</td></tr><tr id='voip' style='display:none; height:280px'>	<td align="center" valign="top">		<table align="center" width="96%">		<tr>	<td valign='top' class="field_text" tip="en,trunks,1">				Provider:<BR>				<select size='6' id='provider' style='width:200px' class="input8"></select>			</td>			<td>				<A href="#" id="providerlink"><img id='providerlogo' style='visibility:hidden;' border=0></A>			</td>		</tr>		<tr>			<td colspan=2 align="center">				<div id='providerdesc' style='margin-left: 5px; margin-bottom: 5px; margin-top: 10px; font-size:10px'></div>				<div>				<table align="center">				<tr>	<td id='voip_user' class="field_text" tip="en,trunks,3">					Username:</td>					<td><input size='20' id='username' class="input8"></td>				</tr>				<tr>	<td id='voip_pass' class="field_text" tip="en,trunks,4">					Password:</td>					<td><input type="password" size='20' id='secret' class="input8"></td>				</tr>				<tr>    <td style='display:none' id='voip_ip' class="field_text" tip="en,trunks,5">NGT Host:</td>					<td><input style="display:none" size='20' id='ip' class="input8"></td>				</tr>				</table>				</div>			</td>		</tr>		</table>	</td></tr><tr id='customvoip' style='display:none; height:280px'>	<td align="center">		<table align="center" cellpadding=2 cellspacing=1>			<input id="trunkname" type="hidden">			<input id="hasiax" type="hidden">			<input id="hassip" type="hidden">			<input id="hasexten" type="hidden">			<input id="registeriax" type="hidden">			<input id="registersip" type="hidden">			<input id="host" type="hidden">			<input id="dialformat" type="hidden">			<input id="context" type="hidden">			<input id="group" type="hidden">			<input id="signalling" type="hidden">			<tr>	<td height=10></td>				<td></td>			</tr>			<tr>	<td class="field_text">Comment:</td>				<td><input type="text" id="customvoip_name" size=14 onkeyup=" $('cancel').disabled= false;$('save').disabled= false;"  class="input8"></td>			</tr>			<tr>	<td class="field_text">Protocol:</td>				<td><select id="customvoip_protocol" onchange=" $('cancel').disabled= false;$('save').disabled= false;"  class="input8">					<option value="iax">IAX</option>					<option value="sip">SIP</option>					</select>				</td>			</tr>			<tr>	<td class="field_text">Register:</td>				<td><input type="checkbox" id="customvoip_register" onchange="flip_register();"  class="input8"></td>			</tr>			<tr>	<td class="field_text">Host:</td>				<td><input type="text" id="customvoip_host" size=14 onkeyup=" $('cancel').disabled= false;$('save').disabled= false;"  class="input8"></td>			</tr>			<tr>	<td class="field_text">Username:</td>				<td><input type="text" id="customvoip_username" size=14 onkeyup=" $('cancel').disabled= false;$('save').disabled= false;"  class="input8"></td>			</tr>			<tr>	<td class="field_text">Password:</td>				<td><input type="password" id="customvoip_secret" size=14 onkeyup=" $('cancel').disabled= false;$('save').disabled= false;"  class="input8"></td>			</tr>		</table>	</td></tr><tr>	<td align="center">		<input type='button' id='save' value='Save' class="buttonbold">&nbsp;		<input type='button' id='cancel' value='Cancel' class="buttonbold">	</td></tr></table></div><!-- Users content DIV --><!-- Codecs content DIV --><div id="codecs_content" STYLE="display:none; position: absolute; left: 20; top: 125; width:350; height:245;  background-color:#F4EFE5;   border-width: 1px; border-color: #7E5538; border-style: solid;z-index:5">	<table width="100%" cellpadding=0 cellspacing=0 onmousedown="ASTGUI.startDrag(event , 'codecs_content');">	<TR bgcolor="#7E5538"  style="background-image:url('images/title_gradient.gif');">		<TD Height="20" align="center" style="cursor: move"><font style="color:#FFFFFF; font-size: 12px; font-weight:bold;">Codec Preferences</font></TD>		<TD Height="20" align="right" style="cursor: move"><A href="#" onclick="hide_codecs();"><font style="color:#FFFFFF; font-size: 12px; font-weight:bold;">X</font></A></TD>		<TD width=4></TD>	</TR>	</table>	<table align=center>		<tr><td><BR></td></tr>		<tr><td class="field_text">Allowed</td>			<td></td>			<td class="field_text">Disallowed</td>		</tr>		<tr><td><select id="allowed" size=9 class="input8"></select></td>			<td><input type="button" id="select_codec" value="<" onclick="enable_selectedcodec()"><BR>				<input type="button" id="deselect_codec" value=">" onclick="disable_selectedcodec()"></td>			<td><select id="disallowed" size=9 class="input8"></select></td>		</tr>		<tr><td></td>			<td></td>			<td class="field_text">				<input id='allow' style="display:none">				<input id='disallow'  style="display:none">				<input type=checkbox id="disallow_all" onclick="disallow_all_refresh();">Disallow All			</td>		</tr>		<tr><td colspan=3 align=Center>			<input type="button" class="buttonbold" id="setordercodecs" value="update" onclick="codecs_save( )">&nbsp;&nbsp;			<input type="button" class="buttonbold" id="cancel_setorder" value="Cancel" onclick="hide_codecs( )">			</td>		</tr>		<tr><td><BR></td></tr>	</table></div><!-- Codecs content DIV --><!-- Advanced content DIV --><div id="advanced_content" STYLE="display:none; position: absolute; left: 20; top: 125; width:350; height:207;  background-color:#F4EFE5;   border-width: 1px; border-color: #7E5538; border-style: solid;z-index:7">	<table width="100%" cellpadding=0 cellspacing=0 onmousedown="ASTGUI.startDrag(event , 'advanced_content');">	<TR bgcolor="#7E5538"  style="background-image:url('images/title_gradient.gif');">		<TD Height="20" align="center" style="cursor: move"><font style="color:#FFFFFF; font-size: 12px; font-weight:bold;">Advanced Settings</font></TD>		<TD Height="20" align="right" style="cursor: move"><A href="#" onclick="advanced_cancel();"><font style="color:#FFFFFF; font-size: 12px; font-weight:bold;">X</font></A></TD>		<TD width=4></TD>	</TR>	</table>	<table align=center>		<tr>	<td class="field_text">trunkname:</td>			<td><input id="custom_trunkname" size=14  class="input8"></td>		</tr>		<tr>	<td class="field_text">insecure:</td>			<td><input id="insecure" size=14  class="input8"></td>		</tr>		<tr>	<td class="field_text">port:</td>			<td><input  id="port" size=14 class="input8"></td>		</tr>		<tr>	<td class="field_text">Caller Id:</td>			<td><input type="text" id="callerid" size=14 class="input8"></td>		</tr>		<tr>	<td class="field_text">fromdomain:</td>			<td><input type="text" id="fromdomain" size=14 class="input8"></td>		</tr>		<tr>	<td class="field_text">fromuser:</td>			<td><input type="text" id="fromuser" size=14 class="input8"></td>		</tr>		<tr>	<td class="field_text">contact:</td>			<td><input type="text" id="contact" size=14 class="input8"></td>		</tr>		<tr>			<td class="field_text" tip="en,users,21">can reinvite:</td>			<td align=right><input type='checkbox' id='canreinvite'></td>		<tr><td colspan=2 align=Center>			<input type="button" class="buttonbold" value="update" onclick="advanced_save( )">&nbsp;&nbsp;			<input type="button" class="buttonbold" value="Cancel" onclick="advanced_cancel( )">			</td>		</tr>	</table></div><!-- Advanced content DIV --><div id="mymenu" class="mymenu" style="display:none"></div><div id="bg_transparent" STYLE="display:none; position: absolute; left: 0; top: 24; width:100%; height:100%;  background-color:#EFEFEF; -moz-opacity:.50;opacity:.50; border-width: 1px; border-color: #EFEFEF; border-style: solid; z-index:4"></div><div id="div_calibrate" STYLE="display:none; position: absolute; left: 20; top: 125; width:460; height:290;  background-color:#F4EFE5;   border-width: 1px; border-color: #7E5538; border-style: solid;z-index:8">	<table width="100%" cellpadding=0 cellspacing=0 onmousedown="ASTGUI.startDrag(event , 'div_calibrate');">	<TR bgcolor="#7E5538"  style="background-image:url('images/title_gradient.gif');">		<TD Height="20" align="center" style="cursor: move"><font style="color:#FFFFFF; font-size: 12px; font-weight:bold;">			Easy Calibrate		</font></TD>		<TD Height="20" align="right" style="cursor: move"><A href="#" onclick="skip_Calibration();"><font style="color:#FFFFFF; font-size: 12px; font-weight:bold;">X</font></A></TD>		<TD width=4></TD>	</TR>	</table>	<table align=center>		<tr>	<td class="field_text" colspan=2 align="center">					The analog ports that you have chosen should be calibrated for optimum performance.					Please ensure that your analog lines are plugged in and proceed with calibration.				</td>		</tr>		<tr>	<td height=20></td>	</tr>		<tr>	<td align="right" valign=top>Lines:&nbsp;</td>				<td valign="top">					<span id="span_Ports_toCalibratie"></span>				</td>		</tr>		<tr><td colspan=2 align=Center>			<input id="button_calPorts" type="button" class="buttonbold" value="Easy Calibrate" onclick="calibrate_ports( )">&nbsp;&nbsp;			<input id="button_resCalib" type="button" class="buttonbold" value="Reset Calibration" onclick="reset_calibration( )">&nbsp;&nbsp;			<input id="button_skipCalib" type="button" class="buttonbold" value="Skip" onclick="skip_Calibration( )">			</td>		</tr>	</table></div><div id="msg_div" style="display:none; position: absolute; width:400; height:170; background-color:#FFFFFF; border-width: 1px; border-color: #7E5538; border-style: solid; z-index:10; left: 45; top: 175">	<BR>	<TABLE border=0 cellpadding=0 cellspacing=3 align=center>	<TR>		<TD align=right><img src="./images/loading.gif" id="img_loading"></TD>		<TD align="left" valign=middle align=center>			&nbsp;&nbsp;<font color="bd0e12"><span id="msg_div_span"></span></font>		</TD>	</TR>	<TR>		<TD colspan=2 align=center id="bottom_msg">		<BR>This might take upto 8 minutes to complete. Please do not reboot or poweroff the unit until the calibration is complete.		</TD>	</TR>	</TABLE> </div><div id="div_audioLevels" STYLE="display:none; position: absolute; left: 20; top: 125; width:460; height: 320;  background-color:#F4EFE5;   border-width: 1px; border-color: #7E5538; border-style: solid; z-index:11">	<table width="100%" cellpadding=0 cellspacing=0 onmousedown="ASTGUI.startDrag(event , 'div_audioLevels');">	<TR bgcolor="#7E5538"  style="background-image:url('images/title_gradient.gif');">		<TD Height="20" align="center" style="cursor: move"><font style="color:#FFFFFF; font-size: 12px; font-weight:bold;">			Audio Tuning		</font></TD>		<TD Height="20" align="right" style="cursor: move"><A href="#" onclick="audioLevels_Cancel();"><font style="color:#FFFFFF; font-size: 12px; font-weight:bold;">X</font></A></TD>		<TD width=4></TD>	</TR>	</table>	<table align=center width="100%">		<tr>	<td class="field_text" align="center">					Normally you should not have to adjust your analog ports beyond the initial calibration. Should you still need to fine tune your audio settings , please use the adjustments below.				</td>		</tr>		<tr>	<td height=15></td>	</tr>		<tr>	<td align="center"><B>Port for Adjustment</B>&nbsp;<select id="al_ports" onchange="audioLevels_showPort()"></select></td>	</tr>		<tr>	<td valign="top">					<table cellpadding=2 cellspacing=2 border=0 align="center">						<tr><td>							<LABEL FOR="volLevel6"><input name='al_volLevel' type='radio' id='volLevel6' value='6'  onchange="audioLevels_Change(this.value)">Loudest</LABEL>							</td>						</tr>						<tr><td>							<LABEL FOR="volLevel5"><input name='al_volLevel' type='radio' id='volLevel5' value='5' onchange="audioLevels_Change(this.value)">Louder</LABEL>							</td>						</tr>						<tr><td>							<LABEL FOR="volLevel4"><input name='al_volLevel' type='radio' id='volLevel4' value='4' onchange="audioLevels_Change(this.value)">Loud</LABEL>							</td>						</tr>						<tr><td>							<LABEL FOR="volLevel3"><input name='al_volLevel' type='radio' id='volLevel3' value='3'  onchange="audioLevels_Change(this.value)">Normal</LABEL>							</td>						</tr>						<tr><td>							<LABEL FOR="volLevel2"><input name='al_volLevel' type='radio' id='volLevel2' value='2'  onchange="audioLevels_Change(this.value)">Soft</LABEL>							</td>						</tr>						<tr><td>							<LABEL FOR="volLevel1"><input name='al_volLevel' type='radio' id='volLevel1' value='1'  onchange="audioLevels_Change(this.value)">Low</LABEL>							</td>						</tr>					</table>				</td>		</tr>		<tr><td align=Center height=45>			<input id="button_saveAudioLevels" type="button" class="buttonbold" value="Save" onclick="save_audioLevels()">&nbsp;&nbsp;			<input type="button" class="buttonbold" value="Cancel" onclick="audioLevels_Cancel()">			</td>		</tr>	</table></div></body>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -