espiceland: branch 2.0 r5134 - /branches/2.0/config/js/trunks_voip.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Mon Dec 13 16:37:52 UTC 2010
Author: espiceland
Date: Mon Dec 13 10:37:49 2010
New Revision: 5134
URL: http://svnview.digium.com/svn/asterisk-gui?view=rev&rev=5134
Log:
Fix issue where password was left off authuser line when using an authuser for a SIP trunk. ASTGUI-332.
Modified:
branches/2.0/config/js/trunks_voip.js
Modified: branches/2.0/config/js/trunks_voip.js
URL: http://svnview.digium.com/svn/asterisk-gui/branches/2.0/config/js/trunks_voip.js?view=diff&rev=5134&r1=5133&r2=5134
==============================================================================
--- branches/2.0/config/js/trunks_voip.js (original)
+++ branches/2.0/config/js/trunks_voip.js Mon Dec 13 10:37:49 2010
@@ -89,7 +89,7 @@
ASTGUI.updateFieldToValue( 'edit_VOIPTrunk_Providername' , getProperty(tinfo, 'trunkname') );
ASTGUI.updateFieldToValue( 'trunk_fromdomain' , getProperty(tinfo, 'fromdomain') );
ASTGUI.updateFieldToValue( 'trunk_fromuser' , getProperty(tinfo, 'fromuser') );
- ASTGUI.updateFieldToValue( 'trunk_authuser' , getProperty(tinfo, 'authuser') );
+ ASTGUI.updateFieldToValue( 'trunk_authuser' , getProperty(tinfo, 'authuser').split(":")[0] );
ASTGUI.updateFieldToValue( 'trunk_insecure' , getProperty(tinfo, 'insecure') );
ASTGUI.updateFieldToValue( 'trunk_outboundproxy' , getProperty(tinfo, 'outboundproxy') );
@@ -269,9 +269,9 @@
}
}
- var tmp_authuser = ASTGUI.getFieldValue('trunk_authuser') ;
+ var tmp_authuser = ASTGUI.getFieldValue('trunk_authuser');
if( tmp_authuser ){
- x.new_action('update', EDIT_TRUNK , 'authuser', tmp_authuser );
+ x.new_action('update', EDIT_TRUNK , 'authuser', tmp_authuser + ":" + ASTGUI.getFieldValue(DOM_edit_VOIPTrunk_Password));
parent.sessionData.pbxinfo.trunks[ttype][EDIT_TRUNK]['authuser'] = tmp_authuser ;
}else{
if( parent.sessionData.pbxinfo.trunks[ttype][EDIT_TRUNK].hasOwnProperty('authuser') ){
More information about the asterisk-gui-commits
mailing list