add: globals.debug( "Configuring dialer" );  var		intlFlag = globals.GetNameValuePair( acctSetupIni, "Mode Selection", "IntlMode" ); intlFlag = intlFlag.toLowerCase();  
context: function configureDialer( configFolder, acctSetupIni, regFile ){	// * determine name of scripting file	var		scriptEnabledFlag = "FALSE";	var		scriptFile = globals.GetNameValuePair( regFile, "Dial-In Configuration", "ScriptFileName" );	if ( scriptFile != null && scriptFile != "" )	{		scriptFile = configFolder + scriptFile;		scriptEnabledFlag = "TRUE";	}	else	{		scriptFile = "";		scriptEnabledFlag = "FALSE";	}	// * determine tty	var 	ttyFlag = globals.GetNameValuePair( regFile, "Security", "SecurityDevice" );	ttyFlag = ttyFlag.toLowerCase();	if ( ttyFlag == "yes" )		ttyFlag = "TRUE";	else		ttyFlag = "FALSE";		// * determine outside line access string	var		outsideLineAccessStr = "";	if ( documentVars.prefixData.value != "" )	{		outsideLineAccessStr = documentVars.prefixData.value;		x = outsideLineAccessStr.indexOf( "," );		if ( x < 0 )			outsideLineAccessStr = outsideLineAccessStr + ",";	}	// * configure dialer for Registration Server	dialerData = plugin.newStringArray( 28 );		// increment this # as new dialer strings are added	dialerData[ 0 ]  = "FileName=" + regFile;	dialerData[ 1 ]  = "AccountName=" + globals.GetNameValuePair( regFile, "Dial-In Configuration", "SiteName" );	dialerData[ 2 ]  = "ISPPhoneNum=" + globals.GetNameValuePair( regFile, "Dial-In Configuration", "Phone" );	dialerData[ 3 ]  = "LoginName=" + globals.GetNameValuePair( regFile, "Dial-In Configuration", "Name" );	dialerData[ 4 ]  = "Password=" + globals.GetNameValuePair( regFile, "Dial-In Configuration", "Password" );	dialerData[ 5 ]  = "DNSAddress=" + globals.GetNameValuePair( regFile, "IP", "DNSAddress" );	dialerData[ 6 ]  = "DNSAddress2=" + globals.GetNameValuePair( regFile, "IP", "DNSAddress2" );	dialerData[ 7 ]  = "DomainName=" + globals.GetNameValuePair( regFile, "IP", "DomainName" );	dialerData[ 8 ]  = "IPAddress=" + globals.GetNameValuePair( regFile, "IP", "IPAddress" );	dialerData[ 9 ]  = "IntlMode=" + ( ( intlFlag == "yes" ) ? "TRUE" : "FALSE" );	dialerData[ 10 ] = "DialOnDemand=TRUE";	dialerData[ 11 ] = "ModemName=" + globals.document.vars.modem.value;	dialerData[ 12 ] = "ModemType=" + plugin.GetModemType( documentVars.modem.value );	dialerData[ 13 ] = "DialType=" + documentVars.dialMethod.value;	dialerData[ 14 ] = "OutsideLineAccess=" + outsideLineAccessStr;	dialerData[ 15 ] = "DisableCallWaiting=" + ( ( documentVars.cwData.value != "" ) ? "TRUE" : "FALSE" );	dialerData[ 16 ] = "DisableCallWaitingCode=" + documentVars.cwData.value;	dialerData[ 17 ] = "UserAreaCode=" + documentVars.modemAreaCode.value;				// XXX what to do if international mode?	dialerData[ 18 ] = "CountryCode=" + documentVars.countryCode.value;	dialerData[ 19 ] = "LongDistanceAccess=1";									// XXX	dialerData[ 20 ] = "DialAsLongDistance=TRUE";									// XXX	dialerData[ 21 ] = "DialAreaCode=TRUE";										// XXX	dialerData[ 22 ] = "ScriptEnabled=" + scriptEnabledFlag;	dialerData[ 23 ] = "ScriptFileName=" + scriptFile;	dialerData[ 24 ] = "NeedsTTYWindow=" + ttyFlag;	dialerData[ 25 ] = "Location=Home"; 	dialerData[ 26 ] = "DisconnectTime=" + globals.GetNameValuePair( acctSetupIni, "Mode Selection", "Dialer_Disconnect_After" );	dialerData[ 27 ] = "Path=Server";	// * write out dialer data to Java Console	if ( documentVars.debugMode.value.toLowerCase() == "yes" )	{		globals.debug( "\nDialer data (for Registration Server): " );		var numElements = dialerData.length;		for ( var x = 0; x < numElements; x++ )			globals.debug( "        " + x + ": " + dialerData[ x ] );	}	// * configure the dialer	plugin.DialerConfig( dialerData, true );	// * check if we need to reboot	if ( plugin.NeedReboot() == true )	{		// XXX hardcode in name of next screen???		globals.forceReboot( "1step.htm" );				return;	}	if ( plugin.DialerConnect() == false )	{		plugin.DialerHangup();		// XXX hardcode in name of next screen???		window.location.replace( "error.htm" );									return;	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d3bd082e5674d4895e633d44d3a2d6fe7568dc9b/1step.js/buggy/cmd/dialup/as_html/1step.js