pari: branch 2.0 r4265 - in /branches/2.0/config: js/menus.js menus.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Dec 2 17:31:38 CST 2008


Author: pari
Date: Tue Dec  2 17:31:38 2008
New Revision: 4265

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

Option to dial google talk peers via voicemenus



Modified:
    branches/2.0/config/js/menus.js
    branches/2.0/config/menus.html

Modified: branches/2.0/config/js/menus.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/menus.js?view=diff&rev=4265&r1=4264&r2=4265
==============================================================================
--- branches/2.0/config/js/menus.js (original)
+++ branches/2.0/config/js/menus.js Tue Dec  2 17:31:38 2008
@@ -308,6 +308,12 @@
 					_$('newstep_dial_ThisNumber').value = '';
 					tip_chosenStep.innerHTML = 'Dial a number/buddy using the default skype account';
 					break;
+				case 'DialViaGtalk':
+					lbl('Dial via gtalk');
+					$('#newstep_gtalkpeers').show();
+					_$('newstep_gtalkpeers').selectedIndex = -1 ;
+					tip_chosenStep.innerHTML = 'Dial a user on the google talk network.';
+					break;
 				case 'Macro':
 					lbl('Macro');
 					$('#newstep_custom').show();
@@ -421,6 +427,9 @@
 				break;
 			case 'DialViaSkype':
 				newstep = 'Dial(Skype/' + ASTGUI.getFieldValue('newstep_dial_ThisNumber') + ')' ;
+				break;
+			case 'DialViaGtalk':
+				newstep = 'Dial(gtalk/' + ASTGUI.getFieldValue('newstep_gtalkpeers') + ')' ;
 				break;
 			case 'Macro':
 				newstep = 'Macro(' + ASTGUI.getFieldValue('newstep_custom') + ')' ;
@@ -704,6 +713,17 @@
 		if( modules_show.contains('res_skypeforasterisk') && modules_show.contains('chan_skype') ){
 			ASTGUI.selectbox.append('newStep_select_action', 'Dial via Skype', 'DialViaSkype');
 		}
+		if( modules_show.contains('res_jabber') && modules_show.contains('chan_gtalk') ){
+			ASTGUI.selectbox.append('newStep_select_action', 'Dial via gtalk', 'DialViaGtalk');
+			var GTALK_CNF = config2json({ filename:'gtalk.conf', usf:1 }); // buddies
+			for( buddy in GTALK_CNF ){
+				if( !GTALK_CNF.hasOwnProperty(buddy) || buddy == 'general' ) continue;
+				ASTGUI.selectbox.append( 'newstep_gtalkpeers' , GTALK_CNF[buddy].username , GTALK_CNF[buddy].connection + '/' + GTALK_CNF[buddy].username );
+			}
+		}
+
+
+
 	}, 1000);
 
 	if( !ASTGUI.miscFunctions.alertIfRangeisNotdefined('vme_start','vme_end', 'VoiceMenus') ){

Modified: branches/2.0/config/menus.html
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/menus.html?view=diff&rev=4265&r1=4264&r2=4265
==============================================================================
--- branches/2.0/config/menus.html (original)
+++ branches/2.0/config/menus.html Tue Dec  2 17:31:38 2008
@@ -213,6 +213,7 @@
 						<input class='class_newStep_details_td' id="newstep_UserEvent_eventname" size=5>
 						<span  class='class_newStep_details_td' id='newstep_UserEvent_body_lbl'>Body:</span>
 						<input class='class_newStep_details_td' id="newstep_UserEvent_body" size=5>
+						<select class='class_newStep_details_td' id="newstep_gtalkpeers"></select>
 					</td>
 					<td>
 						<span class='guiButton' onclick='VoiceMenus_miscFunctions.push_newstep();'>&uarr; Add new Step</span>




More information about the asterisk-gui-commits mailing list