
(Please set word_wrap on, Edit Menu)

SNServer Sample Application Information

	This application may be used as a basis for developing other applications.  Just build your voice messages using the Build Audio Text Form, then re-do the CommandProcess procedure.

	The application allows you to place a call to it.  It plays numerous voice menus and asks you to respond, either leaving a voice message, retrieving the message, or having the program call you.  All of the interaction with the call is handled in the CommandProcess procedure.

	The user is assumed to have an understanding of Visual Basic procedural code as well as the Dialogic voice functions (See the Function Set documentation).  This application uses the following Dialogic or ez, ease of use functions:

Functions used: (See the Function Set documentation)

	01)  dx_open		opens a line
	02)  vs_set_dx_xpb	setup the xpb structure in SNServer for the ez_playmultp function
	03)  dx_adjsv		adjust volume and speed
	04)  dx_wtring		wait for incoming call
	05)  ez_playfile	play a voice file
	06)  ez_getdigits	retrieve tone digits
	07)  ez_recfile		record to a voice file
	08)  ez_playmultp	play multiple, up to 20 voice files, one after another
	09)  ez_dial		dial a number
	10)  ATDX_LINEST	test the line status
	11)  ez_hangup		hang up the line
	12)  dx_close		closes a line
	13)  stop		closes down all active lines and terminates SNServer

	For the most part this application is identical to the SVSample application with these exceptions:  

	1) The application launches one SNServer voice server per line.  Each SNServer.exe process handles one line with one thread rather than one thread per line as in SVServer. For instance if you are using eight lines there would be eight seperate voice processes _SNServer 001, _SNServer 002, _SNServer 003, . . . _SNServer 008.

	2) The DDE topic in the CMD_Open case of the CommandProcess procedure identifies the seperate processes by line number as follows:
	Text1(Ndx).LinkTopic = "SNServer" & Trim$(Format$(Ndx + 1, "000")) & "|SVSFunction"

Operation of the application.

	1)  Start the svsample.exe program.
	2)  Using the File Menu, select the Set File Path Declarations Form
		Make certain of the correct file paths for:
		- startcfg.exe, The Dialogic Configuration Manager
		- snserver.exe, The Synchronized Voice Server
		- snserver.mdb, The Sample Application Database
	3)  Start the Dialogic Configuration Manager and start the boards.
	4)  Start the Synchronized Voice Servers.
	5)  Run the application and place a call to the Dialogic board for line 1
	6)  Press Stop SNServers or Shutdown to stop.
	7)  Press Terminate Session to exit
	8)  Examine the CommandProcess Procedure

	 

	