pari: branch 2.0 r4202 - /branches/2.0/config/js/index.js
    SVN commits to the Asterisk-GUI project 
    asterisk-gui-commits at lists.digium.com
       
    Mon Nov 24 12:31:15 CST 2008
    
    
  
Author: pari
Date: Mon Nov 24 12:31:15 2008
New Revision: 4202
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=4202
Log:
 Adding VoiceMailMain extension to the list of Destinations
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=4202&r1=4201&r2=4202
==============================================================================
--- branches/2.0/config/js/index.js (original)
+++ branches/2.0/config/js/index.js Mon Nov 24 12:31:15 2008
@@ -903,6 +903,14 @@
 			f.optionValue = (fortbr)? 'default,o,1' : 'Goto(default,o,1)';
 			tmp.push(f);
 
+		if( sessionData.pbxinfo['localextensions'].hasOwnProperty('VoiceMailMain') ){
+			 var tmp_VMM_Exten = ASTGUI.parseContextLine.getExten( sessionData.pbxinfo['localextensions']['VoiceMailMain'] ) ;
+			var f = new destination;
+			f.optionText = 'Check Voicemails -- ' + tmp_VMM_Exten ;
+			f.optionValue = (fortbr)? 'default,' + tmp_VMM_Exten + ',1' : 'Goto(default,' + tmp_VMM_Exten + ',1)' ;
+			tmp.push(f);
+		}
+
 		if(!fortbr){
 			tmp.push({ optionText: 'Hangup' , optionValue: 'Hangup' });
 			tmp.push({ optionText: 'Congestion' , optionValue: 'Congestion' });
    
    
More information about the asterisk-gui-commits
mailing list