/**********************************************************************************/
/** © 1998 - 2009 Ultratec, Inc.                                                 **/
/**                                                                              **/
/** Disclaimer:                                                                  **/
/**   Ultratec, Inc. is providing this code as an example of how to access their **/
/**   Externally Hosted CapTel Application Programming Interface. All example    **/
/**   source code obtained from Ultratec, Inc is delivered "AS IS." Ultratec,    **/
/**   Inc specifically disclaims any and all warranties, expressed or implied,   **/
/**   including but not limited to any implied warranties of merchantability or  **/
/**   fitness for a particular purpose. Ultratec, Inc. does not represent or     **/
/**   warrant that any program is error free or that its use will be             **/
/**   uninterrupted. Ultratec, Inc. shall not be liable for any loss of profit,  **/
/**   loss of business or goodwill, loss of data, interruption in business, nor  **/
/**   for indirect, special, incidental, or consequential damages of any kind    **/
/**   under or arising out of the use or implementation of the example source    **/
/**   code, however caused, whether for breach or warranty, breach or            **/
/**   repudiation of contract, tort, negligence, or otherwise, even if Ultratec, **/
/**   Inc has been advised of the possibility of such a loss. Also Ultratec,     **/
/**   Inc. shall not have any obligation to provide techincal support or         **/
/**   development assistance for the example source code obtained from Ultratec, **/
/**   Inc.                                                                       **/
/**********************************************************************************/
/**********************************************************************************/
/** Configuration                                                                **/
/**********************************************************************************/
var PROXY = "/services/uti_proxy.asp"; //URL to the proxy page that will get the command results from Ultratec

/**********************************************************************************/
/** Global                                                                       **/
/**********************************************************************************/
var gUserID = ""; //UserID for the person logged into the system
var gSessionID = ""; //SessionID for the person logged into the system
var gCallID = ""; //CallID for the active call
var gMessageID = ""; //MessageID for the active call...
var gUser = ""; //Name of the user that is logged in
var gCallback = ""; //phone number that the user waits for a call at...
var gANI = ""; //phone number that the user uses to place a call from - ie: dial from number
var gDialed = ""; //phone number that the user uses to place a call to - ie: dial to number
var gInternational = false; //this determines if a user can call international numbers or not.

var bKeepSessionAlive = false; //this is used to signal whether or not the session timer should be started again... - this is used for the setTimeout version...
var iSessionTimeout = 10000; //this is the time elapsed before the session is called again... 10 seconds

var bCheckForCall = false; //this is used to signal whether or not the application should check for incoming calls... - this is used for the setTimeout version...
var iCheckCallTimeout = 10000; //this is the time elapsed before the application checks for a call again... 10 seconds

var bGetMessage = false; //this is used to signal whether or not the application should check for new messages. - this is used in the setTimeout version...
var iGetMessageTimeout = 1000; //this is the time elapsed before the application checks for a call again... 1 second

var bEmergency = false; //this is used to signal the console to display in emergency mode or in normal mode.
var gEmergencyMessage = "<hr style='color:white;height:1px;'/><b>You are about to make an emergency call.<br/><br/>You must be able to tell the emergency operator your location. If you cannot do this, dial 911 directly on your phone.</b>"; //this is the message that gets displayed when a user tries to place an emergency call

var bEndCall = false; //this is used to determine whether or not to end a call.

var CSNUMBER = "1-555-555-5555"; //this is the customer service number.
