Voice Elements uses a client/server architecture. Because of this, Voice Elements is very flexible, allowing you to deploy your application, and your Voice Elements Server on two different machines.
Voice Elements Connection Modes
The two connection modes that are available are ClientSession and Server Mode.
ClientSession
When using a connection mode of Client Session, the Voice Elements Client will use the file references on the machine where the client is running. When it comes time to play / record those file references, it will stream them between the client and the server. Voice Elements will only stream files that have been modified.
This mode works very well, but there is some obvious overhead with streaming files back and forth. For this reason, we would suggest using a Connection Mode of Server instead of ClientSession for high density systems.
Server
When using a connection mode of Server, the Play / Record commands are performed on the server machine, instead of the machine where the client is running. When it comes to play / record, Voice Elements will use the Server’s local file system.
How to Change your Connection Mode
When you first connect to Voice Elements, we recommend that you set your preferred connection mode. Here is a code example:
s_TelephonyServer = new TelephonyServer(sIpaddress, "username@hotmail.com", "password"); s_TelephonyServer.CacheMode = VoiceElements.Interface.CacheMode.Server;