Next Topic

Previous Topic

Home

Book Contents

Book Index

How to exit the MonTel Server and exit options

There are 2 basic ways to exit the MonTel Server, by user input from the Keyboard or programmatically.

Three different key stroke combinations.

While there are three combinations of keyboard strokes that can be used exit the MonTel Server, to minimise the loss of data, only the "Esc" key should normally be used.

The others are CTRL-C and CTRL-Break.

The keyboard exit will prompt the user to confirm an exit, giving a 10 second count down to resume the program.

The Esc key exit will first wait to make sure that all outstanding data from the serial port has been saved, and that the Serial port buffer is empty before issuing the prompt. This may mean that you may not be able to exit MonTel since the PABX sends extra characters after a completed call record, or for other reasons such as the failure of the PABX or serial cable.

In this case you can use the CTRL-C combination (hold the Control key and strike 'c'). This combination will finish displaying text to the screen, and then prompt for an exit, regardless of the state of the serial port buffer.

In some cases there is so much activity, for example the serial port buffer is full, and being emptied so fast that the CTRL-C combination gets lost or confused in all the activity. In this case as a last resort the CTRL-Break combination (hold the Control key and strike 'break') will force the next text output to be the 'break signal' and MonTel will immediate cease activity, and prompt the user to exit.

The Programatic options are set in the PABX.INI file.

The other way to exit is when certain pre-defined circumstances have been met. These vary according to settings in the PABX.INI file, and may have various DOS Error levels so they can be used in Batch files. Keyboard exit always exits with an error level of 0, unless the user is responding to a DOS Critical error (abort), in which case the level is either 1 or a value defined in the PABX.INI file.

PABX.INI setting

Exit ErrorLevel

ExitServerIfINIisUpdated

31

ExitServerAtThisTime

15

ExitServerIfInvalidCallTime

63

DOSCriticalErrorExitLevel

1-255

 

 

------------------------------