pari: branch 2.0 r3780 - in /branches/2.0/config: js/tooltip.js preferences.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Sep 8 16:11:35 CDT 2008


Author: pari
Date: Mon Sep  8 16:11:34 2008
New Revision: 3780

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

 AA50-2263 - support for Polycom Digitmapping

  * Add digit mapping string field

  * Add digit timeout field



Modified:
    branches/2.0/config/js/tooltip.js
    branches/2.0/config/preferences.html

Modified: branches/2.0/config/js/tooltip.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/tooltip.js?view=diff&rev=3780&r1=3779&r2=3780
==============================================================================
--- branches/2.0/config/js/tooltip.js (original)
+++ branches/2.0/config/js/tooltip.js Mon Sep  8 16:11:34 2008
@@ -295,7 +295,18 @@
 	tooltips['options'].en[9] = "The Language setting allows the user to specify the default prompts language for phone to phone, inbound, and outbound calls.  If a soundpack selection is made but not already installed, then the pack will be downloaded from Digium." ;
 	tooltips['options'].en[10] = "Enables the display of a graphic on a phone's LCD display when the phone is idle." ;
 	tooltips['options'].en[11] = "Number of seconds to ring a device before sending to the user's Voicemail Box" ;
-
+	tooltips['options'].en[12] = "A digit mapping string compatible with the RFC 3435 section 2.1.5. These default is:"
+					+ "<li> [2-9]11 - Where calls beginning with digits 2-9 followed by digits 11 are dialed immediately. "
+					+ "<li> 0T - Where calls beginning with digit 0 followed by a pause equal to the \"Digit Timeout\" option."
+					+ "<li> +011xxx.T - Where calls beginning with the + character, followed by 011 digits and then at least three more digits before any arbitrary number is matched, dialed after Digit Timeout is reached."
+					+ "<li> 0[2-9]xxxxxxxxx - Where calls beginning with 0, followed by any digit from 2-9, followed further by 9 more digits are dialed immediately."
+					+ "<li> +1[2-9]xxxxxxxx - Where calls beginning with the + character, followed by 1, followed by any digit from 2-9, followed by 8 more digits are dialed immediately."
+					+ "<li> [2-9]xxxxxxxxx - Where calls beginning with any digit from 2-9, followed by 9 more digits are dialed immediately."
+					+ "<li> [2-9]xxxT - Where calls beginning with any digit from 2-9, followed by three more digits are dialed after Digit Timeout is reached."
+					+ "This is represented in the entry box as: [2-9]11|0T|+011xxx.T|0[2-9]xxxxxxxxx|+1[2-9]xxxxxxxx|[2-9]xxxxxxxxx|[2-9]xxxT"
+					+ "where each entry is separated by the | character. ";
+
+	tooltips['options'].en[13] = "The timeout variable is the number of seconds the phone will wait for each segment of a digit map expressed as an integer.";
 
 	// Tooltips for Directory
 	tooltips['directory']= new Object;

Modified: branches/2.0/config/preferences.html
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/preferences.html?view=diff&rev=3780&r1=3779&r2=3780
==============================================================================
--- branches/2.0/config/preferences.html (original)
+++ branches/2.0/config/preferences.html Mon Sep  8 16:11:34 2008
@@ -28,6 +28,10 @@
 <script>
 var OPEXTENSION = '';
 var STDEXTEN_RINGINTERFACE_LINE ;
+
+var polycom_digitmap_string = '';
+var polycom_digitmap_timeout_string = '';
+
 
 var loadDOMelements = function(){
 	DOM_obCid_input = _$('obCid_input') ;
@@ -46,6 +50,21 @@
 			}else{
 				_$('op_polycom_idleimage').checked = false ;
 			}
+
+			if( c.hasOwnProperty('polycom') ){
+				var tmp_dm_index = c['polycom'].indexOfLike('setvar=DIGITMAP=') ;
+				if( tmp_dm_index >= 0 ){
+					polycom_digitmap_string = c['polycom'][tmp_dm_index].afterChar('=');
+					_$('op_voip_digitmap').value = polycom_digitmap_string.lChop('DIGITMAP=');
+				}
+
+				var tmp_dmto_index = c['polycom'].indexOfLike('setvar=DIGITMAPTIMEOUT=') ;
+				if( tmp_dmto_index >= 0 ){
+					polycom_digitmap_timeout_string = c['polycom'][tmp_dmto_index].afterChar('=');
+					_$('op_voip_digit_timeout').value = polycom_digitmap_timeout_string.lChop('DIGITMAPTIMEOUT=');
+				}
+			}
+
 		})();
 	}
 
@@ -175,6 +194,21 @@
 		}else{
 			u.new_action( 'append', 'polycom', 'setvar', 'IDLEIMAGE_ACTIVE=0' );
 		}
+
+		if( polycom_digitmap_string ){
+			u.new_action('delete', 'polycom', 'setvar', '' , polycom_digitmap_string );
+		}
+		if( _$('op_voip_digitmap').value ){
+			u.new_action( 'append', 'polycom', 'setvar', 'DIGITMAP=' + _$('op_voip_digitmap').value );
+		}
+
+		if( polycom_digitmap_timeout_string ){
+			u.new_action('delete', 'polycom', 'setvar', '' , polycom_digitmap_timeout_string );
+		}
+		if( _$('op_voip_digit_timeout').value ){
+			u.new_action( 'append', 'polycom', 'setvar', 'DIGITMAPTIMEOUT=' + _$('op_voip_digit_timeout').value );
+		}
+
 		u.callActions();
 	}
 
@@ -254,8 +288,15 @@
 		<td align=right>Enable Idle Image Display <img src="images/tooltip_info.gif" tip="en,options,10" class='tooltipinfo'> :</td>
 		<td><input type='checkbox' id='op_polycom_idleimage'></td>
 	</tr>
+	<tr class='16_Only' style='display:none;'>
+		<td align=right>VoIP Phone Digit Map <img src="images/tooltip_info.gif" tip="en,options,12" class='tooltipinfo'> :</td>
+		<td><input size=15 id='op_voip_digitmap'></td>
+	</tr>
+	<tr class='16_Only' style='display:none;'>
+		<td align=right>VOIP Phone Digit Timeout <img src="images/tooltip_info.gif" tip="en,options,13" class='tooltipinfo'> :</td>
+		<td><input size=1 id='op_voip_digit_timeout'></td>
+	</tr>
 </table>
-
 
 <table cellpadding=2 cellspacing=2 border=0  align=center width="90%">
 <tr><td align=center>




More information about the asterisk-gui-commits mailing list