rbrindley: branch 2.0 r4720 - /branches/2.0/config/js/pbx2.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Apr 8 10:39:38 CDT 2009


Author: rbrindley
Date: Wed Apr  8 10:39:33 2009
New Revision: 4720

URL: http://svn.digium.com/svn-view/asterisk-gui?view=rev&rev=4720
Log:

- dahdi before zaptel
- trunks.length == 0, isn't exactly an error, lets not return null;


Modified:
    branches/2.0/config/js/pbx2.js

Modified: branches/2.0/config/js/pbx2.js
URL: http://svn.digium.com/svn-view/asterisk-gui/branches/2.0/config/js/pbx2.js?view=diff&rev=4720&r1=4719&r2=4720
==============================================================================
--- branches/2.0/config/js/pbx2.js (original)
+++ branches/2.0/config/js/pbx2.js Wed Apr  8 10:39:33 2009
@@ -1166,7 +1166,7 @@
 			return false;
 		}
 
-		chans = trunk.zapchan || trunk.dahdichan;
+		chans = trunk.dahdichan || trunk.zapchan;
 		delete trunk.zapchan;
 		delete trunk.dahdichan;
 
@@ -1439,7 +1439,6 @@
 
 	if (!trunks.length) {
 		top.log.warn('pbx.trunks.nextAvailGroup: no trunks');
-		return null;
 	}
 
 	trunks.each(function(trunk) {




More information about the asterisk-gui-commits mailing list