pari: branch 2.0 r4140 - /branches/2.0/config/js/index.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Nov 19 10:26:00 CST 2008


Author: pari
Date: Wed Nov 19 10:26:00 2008
New Revision: 4140

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

 Also consider VoicemailMain Extension in ifExtensionAlreadyExists()
 (closes issue #13924)



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

Modified: branches/2.0/config/js/index.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/index.js?view=diff&rev=4140&r1=4139&r2=4140
==============================================================================
--- branches/2.0/config/js/index.js (original)
+++ branches/2.0/config/js/index.js Wed Nov 19 10:26:00 2008
@@ -871,6 +871,9 @@
 	ifExtensionAlreadyExists: function(a){ // miscFunctions.ifExtensionAlreadyExists() - returns true if an extension already exists, false Other wise
 		var tmp = [] ;
 		tmp = tmp.concat( astgui_manageusers.listOfUsers() );
+		if( sessionData.pbxinfo['localextensions'].hasOwnProperty('VoiceMailMain') ){
+			tmp.push( ASTGUI.parseContextLine.getExten(sessionData.pbxinfo['localextensions'].hasOwnProperty('VoiceMailMain')) ) ;
+		}
 		var y = sessionData.pbxinfo.voicemenus.getOwnProperties();
 			y.each( function( item ){
 				var tmp_thisVMenu = ASTGUI.cloneObject(sessionData.pbxinfo.voicemenus[item]);




More information about the asterisk-gui-commits mailing list