rbrindley: branch 2.0 r4875 - /branches/2.0/config/js/pbx.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Jun 16 17:06:10 CDT 2009


Author: rbrindley
Date: Tue Jun 16 17:06:07 2009
New Revision: 4875

URL: http://svn.asterisk.org/svn-view/asterisk-gui?view=rev&rev=4875
Log:

- fixed a case where zapchan needed to be updated to dahdican


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

Modified: branches/2.0/config/js/pbx.js
URL: http://svn.asterisk.org/svn-view/asterisk-gui/branches/2.0/config/js/pbx.js?view=diff&rev=4875&r1=4874&r2=4875
==============================================================================
--- branches/2.0/config/js/pbx.js (original)
+++ branches/2.0/config/js/pbx.js Tue Jun 16 17:06:07 2009
@@ -531,8 +531,8 @@
 //				if( c[d]['zapchan'] && (!c[d]['hasiax'] || c[d]['hasiax'] =='no') && (!c[d]['hassip'] || c[d]['hassip'] =='no')){
 				if( c[d].hasOwnProperty('zapchan') || c[d].hasOwnProperty('dahdichan') ){
 					if (c[d].hasOwnProperty('zapchan') && sessionData.PLATFORM.isABE) {
-						users_conf.new_action('delete', c, 'zapchan', '');
-						users_conf.new_action('append', c, 'dahdichan', c[d].zapchan);
+						users_conf.new_action('delete', d, 'zapchan', '');
+						users_conf.new_action('append', d, 'dahdichan', c[d]['zapchan']);
 					}
 					// if is an analog trunk - note that here we are NOT expecting a 'FXO channel(FXS signalled) on a T1/E1'
 					// we assume that all the ports in zapchan are actual analog FXO ports
@@ -565,6 +565,10 @@
 			//if( !d.beginsWith('span_') && !d.beginsWith('trunk_') && c[d].hasOwnProperty('context') && c[d]['context'].beginsWith(ASTGUI.contexts.CallingPlanPrefix) ){ // if is none of above we can assume it is a user context
 			// TODO : we can also base the logic on 'hasexten' , cause all trunks have hasexten='yes' and users don't
 			if( !d.beginsWith('span_') && !d.beginsWith('trunk_') ){ // if is none of above we can assume it is a user context
+				if (c[d].hasOwnProperty('zapchan') && sessionData.PLATFORM.isABE) {
+					users_conf.new_action('delete', d, 'zapchan', '');
+					users_conf.new_action('append', d, 'dahdichan', c[d]['zapchan']);
+				}
 				sessionData.pbxinfo['users'][d] = c[d];
 				continue;
 			}




More information about the asterisk-gui-commits mailing list