ENTERPRISE MESSAGING GATEWAY README
====================================
If you have not already installed EMG, you need to run INSTALL.

Please check files LICENSE and LICENSE.FOSS for license info.

EMGDIR is the directory where the Enterprise Messaging Gateway
configuration files are located, by default /etc/emg.

COMMANDS
The following commands are available in the Enterprise Messaging
Gateway package:

emgd      The Enterprise Messaging Gateway daemon, run in the background.
          Use the -debug option to get debug information on stdout.
          Started with "emgd". Run "emgd -v" to get license information.
emgclient Send messages, display queues, delete and query messages.
emgsend   Send message. Syntax: emgsend [options] recipient "message"
emgstat   Display connector information.
emgperl   Driver for Perl extensions.
emgpdu    Filter the pdu log files based on client username, and more.
emgload   Used for benchmarking.
emgsink   A blackhole SMSC, accepting everything, then discarding it.

SERVER CONFIGURATION FILE
The behavior of the software is controlled by the file server.cfg
in EMGDIR. After modifying the config file you have to restart
the server by stopping it and then starting it again with "emgd".

You can check the syntax of the server.cfg file using "emgd -verify".

CLIENT CONFIGURATION FILE
The command-line uses the MGP protocol and checks EMGDIR/client.cfg
for information about host, port, username and password. These options
can also be specified on the command-line.

Run "emgsend -help" for more information on command-line options.

ROUTING FILE
EMGDIR/routing can be used to route messages based on incoming
connector or on prefix.

DISPLAY INFO ON COMMAND-LINE OPTIONS
# emgd -help

CHECK CONFIGURATION
# emgd -verify

DISPLAY HOSTID AS READ BY EMG SERVER
# emgd -hostid

START SERVER
# emgd

STOP SERVER
# emgd -stop

REFRESH THE SERVER CONFIGURATION (ACTIVE SESSIONS ARE TERMINATED)
# emgd -refresh

RELOAD THE SERVER CONFIGURATION (ACTIVE SESSIONS ARE NOT TERMINATED)
# emgd -reload

SEND MESSAGE FROM COMMAND-LINE
# emgsend <recipient MSISDN> "<message>"
# emgsend 0123456 "Test message"
Send using outgoing connector "c1"
# emgsend -o ROUTE=c1 0123456 "Test message"

To get more help consult the User's Guide and visit
https://nordicmessaging.se/.

You can also send email to support@braxo.se.

