bkruse: trunk r1077 - in /trunk: config/ configs/

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Wed Jun 13 14:54:51 MST 2007


Author: bkruse
Date: Wed Jun 13 16:54:50 2007
New Revision: 1077

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1077
Log:
More changes for bandwidth.com.....we have to make 2 trunks, one for incoming and one for outgoing.

Modified:
    trunk/config/trunks.html
    trunk/configs/providers.conf.sample

Modified: trunk/config/trunks.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/trunks.html?view=diff&rev=1077&r1=1076&r2=1077
==============================================================================
--- trunk/config/trunks.html (original)
+++ trunk/config/trunks.html Wed Jun 13 16:54:50 2007
@@ -40,6 +40,7 @@
 var dids_array = [];
 var old_trunkname;
 var used_fxos = {};
+var isdouble = 0;
 used_fxos.oldvalue = "";
 used_fxos.newvalue = "";
 
@@ -196,6 +197,9 @@
 	if( !_tsv.checked && !_tsa.checked && !_tscv.checked ){ gui_alert("A trunk must be Analog or VoIP or Custom VOIP"); return false; }
 
 	if(_dvcs_v.length ==0 ){
+		if (!_$('host').value && _$('trunkstylevoip').checked) {
+			isdouble = 1;
+		}
 		ifnewtrunk();
 	}else{
 		ifedit_existing();
@@ -334,7 +338,13 @@
 		_$('hasiax').value = provider.fieldbyname['hasiax'];
 		_$('registeriax').value = provider.fieldbyname['registeriax'];
 		_$('registersip').value = provider.fieldbyname['registersip'];
-		_$('host').value = provider.fieldbyname['host'];
+		if(isdouble == 1) { /* Since we need an input and output trunk, we need to create yet another. */
+			_$('host').value = provider.fieldbyname['host_in'];
+			//_$('host').value = provider.fieldbyname['host_out'];
+		} else {
+			_$('host').value = provider.fieldbyname['host'];
+		}
+
 		for (var x=0;x<_zapchan.options.length;x++){  _zapchan.options[x].selected = false; }
 		_zapchan.value = '';
 		_$('group').value = '';

Modified: trunk/configs/providers.conf.sample
URL: http://svn.digium.com/view/asterisk-gui/trunk/configs/providers.conf.sample?view=diff&rev=1077&r1=1076&r2=1077
==============================================================================
--- trunk/configs/providers.conf.sample (original)
+++ trunk/configs/providers.conf.sample Wed Jun 13 16:54:50 2007
@@ -18,8 +18,9 @@
 providerdesc = Bandwidth.com's SIP (Session Initiation Protocol) Trunking solution, combined with an IP-PBX, enables organizations to save money by consolidating their voice and data over a single IP circuit -- maximizing its usage by utilizing unused bandwidth. Note: No username or password required. Bandwidth.com uses IP based Authentication.
 hasiax = no
 hassip = yes
+port = 5060
 registeriax = no
-registersip = yes
+registersip = no
 host_in = 4.79.212.236
 host_out = 216.82.224.202 
 regurl = http://bandwidth.com



More information about the asterisk-gui-commits mailing list