rbrindley: branch 2.0 r4715 - in /branches/2.0/config: ./ js/

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Apr 7 10:51:48 CDT 2009


Author: rbrindley
Date: Tue Apr  7 10:51:44 2009
New Revision: 4715

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

- added outboundproxy to the edit form of SIP trunks


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

Modified: branches/2.0/config/js/trunks_voip.js
URL: http://svn.digium.com/svn-view/asterisk-gui/branches/2.0/config/js/trunks_voip.js?view=diff&rev=4715&r1=4714&r2=4715
==============================================================================
--- branches/2.0/config/js/trunks_voip.js (original)
+++ branches/2.0/config/js/trunks_voip.js Tue Apr  7 10:51:44 2009
@@ -91,6 +91,7 @@
 		ASTGUI.updateFieldToValue( 'trunk_fromuser' , tinfo.getProperty('fromuser') );
 		ASTGUI.updateFieldToValue( 'trunk_authuser' , tinfo.getProperty('authuser') );
 		ASTGUI.updateFieldToValue( 'trunk_insecure' , tinfo.getProperty('insecure') );
+		ASTGUI.updateFieldToValue( 'trunk_outboundproxy' , tinfo.getProperty('outboundproxy') );
 
 		if( tinfo.getProperty('allow') == 'all'){
 			ASTGUI.updateFieldToValue( 'codec_one', 'ulaw' );
@@ -119,8 +120,10 @@
 
 		// remote MWI stuff (only for SIP trunks)
 			if ( ttype == 'sip' ){
+				$('#outboundproxy_field').show();
 				$('.editTrunk_Field_ermwi').show();
 			}else{
+				$('#outboundproxy_field').hide();
 				$('.editTrunk_Field_ermwi').hide();
 			}
 			(function(){
@@ -233,6 +236,8 @@
 
 		var old_trunkUsername = parent.sessionData.pbxinfo.trunks[ttype][EDIT_TRUNK]['username'] ;
 
+		x.new_action('update', EDIT_TRUNK, 'outboundproxy', $('#trunk_outboundproxy').val());
+		parent.sessionData.pbxinfo.trunks[ttype][EDIT_TRUNK]['outboundproxy'] = $('#trunk_outboundproxy').val();
 		x.new_action('update', EDIT_TRUNK , 'host', ASTGUI.getFieldValue(DOM_edit_VOIPTrunk_Hostname) );
 			parent.sessionData.pbxinfo.trunks[ttype][EDIT_TRUNK]['host'] = ASTGUI.getFieldValue(DOM_edit_VOIPTrunk_Hostname) ;
 

Modified: branches/2.0/config/trunks_voip.html
URL: http://svn.digium.com/svn-view/asterisk-gui/branches/2.0/config/trunks_voip.html?view=diff&rev=4715&r1=4714&r2=4715
==============================================================================
--- branches/2.0/config/trunks_voip.html (original)
+++ branches/2.0/config/trunks_voip.html Tue Apr  7 10:51:44 2009
@@ -175,8 +175,10 @@
 		<TD align="right" valign=top>insecure :</TD>
 		<TD align="left"> <select id="trunk_insecure" dfalt='no' class="input8"><option value='port'>port</option><option value='port,invite'>very</option><option value='no'>no</option></select> </TD>
 	</TR>
-
-
+	<TR id="outboundproxy_field" class='editTrunk_Field'>
+		<TD align="right" valign=top>Outbound Proxy :</TD>
+		<TD align="left"> <input id="trunk_outboundproxy" size="16"></TD>
+	</TR>
 	<TR class='editTrunk_Field_ermwi'>
 		<TD align="right">
 			<input type='checkbox' id='edit_ERMWI'> Enable Remote MWI :




More information about the asterisk-gui-commits mailing list