pari: trunk r213 - in /trunk/config: ./ setup/
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Thu Jan 4 12:09:58 MST 2007
Author: pari
Date: Thu Jan 4 13:09:57 2007
New Revision: 213
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=213
Log:
registeriax/registersip for customvoip
Modified:
trunk/config/cfgadvanced.html
trunk/config/cfgappliance.html
trunk/config/cfgbasic.html
trunk/config/setup/1.html
trunk/config/setup/4.html
trunk/config/trunks.html
Modified: trunk/config/cfgadvanced.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgadvanced.html?view=diff&rev=213&r1=212&r2=213
==============================================================================
--- trunk/config/cfgadvanced.html (original)
+++ trunk/config/cfgadvanced.html Thu Jan 4 13:09:57 2007
@@ -206,7 +206,7 @@
<td valign='bottom' align='right' bgcolor='white' colspan=2>
<!-- <a href="#" onclick=" system_link()">System Configuration</a> | -->
<a target='_extern' href="http://www.digium.com/en/company/profile/">About Digium</a> |
- <a target='_extern' href="http://www.asterisknow.org/bugs">Bugs</a> |
+ <a target='_extern' href="http://www.asterisknow.org/bugs">Report a Bug</a> |
<a href="#">Help</a>
<input type="hidden" id="login_name">
</td>
Modified: trunk/config/cfgappliance.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgappliance.html?view=diff&rev=213&r1=212&r2=213
==============================================================================
--- trunk/config/cfgappliance.html (original)
+++ trunk/config/cfgappliance.html Thu Jan 4 13:09:57 2007
@@ -191,7 +191,7 @@
<table border="0" align="center" cellspacing="0" cellpadding="0" bgcolor="#dddddd" width=950 height=570>
<tr height=47><td valign="bottom" align='right' bgcolor='white' height=47><img align='left' src="images/digiumlogo.gif" align="left"></td>
<td valign='bottom' align='right' bgcolor='white' colspan=2><a target='_extern' href="http://www.digium.com/en/company/profile/">About Digium</a> |
- <a target='_extern' href="http://www.asterisknow.org/bugs">Bugs</a> |
+ <a target='_extern' href="http://www.asterisknow.org/bugs">Report a Bug</a> |
<a href="#">Help</a>
<input type="hidden" id="login_name">
</td>
Modified: trunk/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgbasic.html?view=diff&rev=213&r1=212&r2=213
==============================================================================
--- trunk/config/cfgbasic.html (original)
+++ trunk/config/cfgbasic.html Thu Jan 4 13:09:57 2007
@@ -204,7 +204,7 @@
<td valign='bottom' align='right' bgcolor='white' colspan=2>
<!-- <a href="#" onclick=" system_link()">System Configuration</a> | -->
<a target='_extern' href="http://www.digium.com/en/company/profile/">About Digium</a> |
- <a target='_extern' href="http://www.asterisknow.org/bugs">Bugs</a> |
+ <a target='_extern' href="http://www.asterisknow.org/bugs">Report a Bug</a> |
<a href="#">Help</a>
<input type="hidden" id="login_name">
</td>
Modified: trunk/config/setup/1.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/1.html?view=diff&rev=213&r1=212&r2=213
==============================================================================
--- trunk/config/setup/1.html (original)
+++ trunk/config/setup/1.html Thu Jan 4 13:09:57 2007
@@ -214,7 +214,7 @@
<div id="loginform" style="display:none">
<div class="heading">Pleae enter your admin Username and Password </div>
<table align="center">
- <tr><td>Username:</td> <td><input id="username" size=12 value=admin></td> </tr>
+ <tr><td>Username:</td> <td><input id="username" size=12></td> </tr>
<tr><td>Secret:</td> <td><input type="password" id="secret" size=12></td> </tr>
<tr><td align='center' colspan='2' height=40 valign=bottom>
<input type="button" id="login" value="Login" onClick="login()" >
Modified: trunk/config/setup/4.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/setup/4.html?view=diff&rev=213&r1=212&r2=213
==============================================================================
--- trunk/config/setup/4.html (original)
+++ trunk/config/setup/4.html Thu Jan 4 13:09:57 2007
@@ -163,6 +163,12 @@
$('customvoip_protocol').selectedIndex = 0;
}
$('customvoip_host').value = $('host').value;
+ if($('registeriax').value == "yes" || $('registersip').value == "yes"){
+ $('customvoip_register').checked = true;
+ }else{
+ $('customvoip_register').checked = false;
+ }
+
}else if ( $('trunkstylevoip').checked ){
// VOIP
$('customvoip_name').value = "";
@@ -317,10 +323,20 @@
$('hassip').value = "yes";
$('hasiax').value = "no";
}
+ if( $('customvoip_register').checked && $('customvoip_protocol').value == "iax"){
+ $('registeriax').value = 'yes';
+ $('registersip').value = 'no';
+ }
+ if( $('customvoip_register').checked && $('customvoip_protocol').value == "sip"){
+ $('registeriax').value = 'no';
+ $('registersip').value = 'yes';
+ }
+ if( !$('customvoip_register').checked ){
+ $('registeriax').value = 'no';
+ $('registersip').value = 'no';
+ }
$('host').value = $('customvoip_host').value ;
$('dialformat').value = '${EXTEN:1}';
- $('registeriax').value = '';
- $('registersip').value = '';
$('callerid').value = '';
$('insecure').value = '';
$('port').value = '';
@@ -562,6 +578,22 @@
}
}
+function flip_register(){
+ $('cancel').disabled= false;
+ $('save').disabled= false;
+ if( $('customvoip_register').checked && $('customvoip_protocol').value == "iax"){
+ $('registeriax').value = 'yes';
+ $('registersip').value = 'no';
+ }
+ if( $('customvoip_register').checked && $('customvoip_protocol').value == "sip"){
+ $('registeriax').value = 'no';
+ $('registersip').value = 'yes';
+ }
+ if( !$('customvoip_register').checked ){
+ $('registeriax').value = 'no';
+ $('registersip').value = 'no';
+ }
+}
//-->
</SCRIPT>
@@ -681,6 +713,10 @@
</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>
Modified: trunk/config/trunks.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/trunks.html?view=diff&rev=213&r1=212&r2=213
==============================================================================
--- trunk/config/trunks.html (original)
+++ trunk/config/trunks.html Thu Jan 4 13:09:57 2007
@@ -134,6 +134,12 @@
$('customvoip_protocol').selectedIndex = 0;
}
$('customvoip_host').value = $('host').value;
+ if($('registeriax').value == "yes" || $('registersip').value == "yes"){
+ $('customvoip_register').checked = true;
+ }else{
+ $('customvoip_register').checked = false;
+ }
+
}else if ( $('trunkstylevoip').checked ){
// VOIP
$('customvoip_name').value = "";
@@ -288,10 +294,20 @@
$('hassip').value = "yes";
$('hasiax').value = "no";
}
+ if( $('customvoip_register').checked && $('customvoip_protocol').value == "iax"){
+ $('registeriax').value = 'yes';
+ $('registersip').value = 'no';
+ }
+ if( $('customvoip_register').checked && $('customvoip_protocol').value == "sip"){
+ $('registeriax').value = 'no';
+ $('registersip').value = 'yes';
+ }
+ if( !$('customvoip_register').checked ){
+ $('registeriax').value = 'no';
+ $('registersip').value = 'no';
+ }
$('host').value = $('customvoip_host').value ;
$('dialformat').value = '${EXTEN:1}';
- $('registeriax').value = '';
- $('registersip').value = '';
$('callerid').value = '';
$('insecure').value = '';
$('port').value = '';
@@ -535,10 +551,23 @@
}
}
-
+function flip_register(){
+ $('cancel').disabled= false;
+ $('save').disabled= false;
+ if( $('customvoip_register').checked && $('customvoip_protocol').value == "iax"){
+ $('registeriax').value = 'yes';
+ $('registersip').value = 'no';
+ }
+ if( $('customvoip_register').checked && $('customvoip_protocol').value == "sip"){
+ $('registeriax').value = 'no';
+ $('registersip').value = 'yes';
+ }
+ if( !$('customvoip_register').checked ){
+ $('registeriax').value = 'no';
+ $('registersip').value = 'no';
+ }
+}
</script>
-
-
<body id="foo" onload="localajaxinit()" bgcolor="EFEFEF">
<div class="mainscreenTitleBar">
<span style="margin-left: 4px;font-weight:bold;">Service Providers</span>
@@ -638,6 +667,10 @@
</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>
More information about the asterisk-gui-commits
mailing list