bkruse: branch asterisknow r1566 - in /branches/asterisknow: ./ config/ confi...

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Sep 10 14:25:33 CDT 2007


Author: bkruse
Date: Mon Sep 10 14:25:33 2007
New Revision: 1566

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1566
Log:
Merged revisions 1564 via svnmerge from 
https://origsvn.digium.com/svn/asterisk-gui/branches/1.4

........
r1564 | bkruse | 2007-09-10 14:24:54 -0500 (Mon, 10 Sep 2007) | 4 lines

Fix and some logic for voicemail and user specific
VM options.
(closes issue #10664)

........

Modified:
    branches/asterisknow/   (props changed)
    branches/asterisknow/config/scripts/tooltip.js
    branches/asterisknow/config/users.html

Propchange: branches/asterisknow/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Mon Sep 10 14:25:33 2007
@@ -1,1 +1,1 @@
-/branches/1.4:1-1296,1316,1326,1332,1336-1338,1342,1346,1356,1362,1381,1384,1395,1399,1402,1413,1416,1426,1432,1435,1439,1442,1455,1465,1475,1478,1481,1488,1491,1494,1497,1500,1504,1507,1510,1513,1516,1520,1530,1534,1540,1544,1548,1552,1556
+/branches/1.4:1-1296,1316,1326,1332,1336-1338,1342,1346,1356,1362,1381,1384,1395,1399,1402,1413,1416,1426,1432,1435,1439,1442,1455,1465,1475,1478,1481,1488,1491,1494,1497,1500,1504,1507,1510,1513,1516,1520,1530,1534,1540,1544,1548,1552,1556,1564

Modified: branches/asterisknow/config/scripts/tooltip.js
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/scripts/tooltip.js?view=diff&rev=1566&r1=1565&r2=1566
==============================================================================
--- branches/asterisknow/config/scripts/tooltip.js (original)
+++ branches/asterisknow/config/scripts/tooltip.js Mon Sep 10 14:25:33 2007
@@ -42,6 +42,7 @@
 	tooltips['users'] .en[22] = "<B>NAT:</B> Try this setting when Asterisk is on a public IP, communicating with devices hidden behind a NAT device (broadband router). If you have one-way audio problems, you usually have problems with your NAT configuration or your firewall's support of SIP+RTP ports.";
 	tooltips['users'] .en[23] = "<B>DTMFMode:</B> Set default dtmfmode for sending DTMF. Default: rfc2833 <BR><B>Other options:</B><BR>info : SIP INFO messages<BR>inband : Inband audio (requires 64 kbit codec -alaw, ulaw)<BR>auto : Use rfc2833 if offered, inband otherwise";
 	tooltips['users'] .en[24] = "<B>Codecs:</B> Click to select the codecs that asterisk has to offer, for the particular user.";
+	tooltips['users'] .en[25] = "<B>Email Only:</B> Send Voicemail to email only, do not store in the mailbox.";
 	tooltips['users'] .en[99] = "<B>Phone Serial:</B> Enter the serial number of a Polycom phone to enable phone provisioning." ;
 
 // Tooltips for Conferencing (meetme)

Modified: branches/asterisknow/config/users.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/users.html?view=diff&rev=1566&r1=1565&r2=1566
==============================================================================
--- branches/asterisknow/config/users.html (original)
+++ branches/asterisknow/config/users.html Mon Sep 10 14:25:33 2007
@@ -29,7 +29,7 @@
 var callbacks = new Object;
 var extencallbacks = new Object;
 var allcodecs = new Array;
-var fieldnames = ['callwaiting' ,'cancel' ,'cid_number' ,'context' ,'delete' ,'email' ,'fullname' ,'group' ,'hasagent' ,'hasdirectory' ,'hasiax' ,'hasmanager' ,'hassip' ,'hasvoicemail' ,'host' ,'mailbox' ,'name' ,'new' ,'save' ,'secret' ,'threewaycalling' ,'vmsecret' ,'zapchan', 'registeriax', 'registersip','canreinvite','nat','dtmfmode', 'disallow','allow'];
+var fieldnames = ['callwaiting' ,'cancel' ,'cid_number' ,'context' ,'delete' ,'email' ,'fullname' ,'group' ,'hasagent' ,'hasdirectory' ,'hasiax' ,'hasmanager' ,'hassip' ,'hasvoicemail' ,'deletevoicemail' ,'host' ,'mailbox' ,'name' ,'new' ,'save' ,'secret' ,'threewaycalling' ,'vmsecret' ,'zapchan', 'registeriax', 'registersip','canreinvite','nat','dtmfmode', 'disallow','allow'];
 
 var localextenlength = 4;
 var allow_aliasextns = "no";
@@ -219,6 +219,8 @@
 			return true;
 		}
 	}
+	showhide();
+	/* check to see if we need to display out email/voicemail settings. */
 	_$('codecs_text').innerHTML = 'disallow: '+ _$('disallow').value + ' <BR> allow:' + _$('allow').value ;
 }
 
@@ -448,7 +450,20 @@
 	}
 }
 
-
+function showhide() {
+	var t = _$('hasvoicemail');
+	var fields_z = ['deletevoicemail', 'deletevoicemail_2', 'deletevoicemail_3']
+	if(t.checked) {
+		for(var x=0; x < fields_z.length; x++) {
+			_$(fields_z[x]).style.display="";
+		}
+	} else {
+		for(var x=0; x < fields_z.length; x++) {
+			_$(fields_z[x]).style.display="none";
+		}
+	}
+	return true;	
+}
 </script>
 <body id="foo" onload="localajaxinit()"  bgcolor="#EFEFEF" onunload="free_mem()">
 <div class="mainscreenTitleBar">
@@ -486,11 +501,15 @@
 					<legend>&nbsp;Extension Options:&nbsp;</legend>
 				<table align='center' width=270 cellpadding=1 cellspacing=1>
 				<tr>
-					<td width=40 align=right><input type='checkbox' id='hasvoicemail'></td>
+					<td width=40 align=right><input onClick="showhide();" type='checkbox' id='hasvoicemail'></td>
 					<td class="field_text" tip="en,users,8">Voicemail</td>
 
 					<td align=right><input type='checkbox' id='hasdirectory'></td>
 					<td class="field_text" tip="en,users,9">In Directory</td>
+				</tr>
+				<tr id='deletevoicemail_3' style="display:none">
+					<td width=40 align=right><input style="display:none" type='checkbox' id='deletevoicemail'></td>
+					<td style="display:none" id='deletevoicemail_2' class="field_text" tip="en,users,25">Email Only</td>
 				</tr>
 				<tr>
 					<td align=right><input type='checkbox' id='hassip'></td>




More information about the asterisk-gui-commits mailing list