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. emgsend recipient "message"
emgstat   Display connector information
pushtohex Encode WAP push over SMS PDUs
rttltohex Convert RTTL files to hex code
mmscomp   Compile MMS messages to binary format (decompile with mmscomp -d)

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 killing 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 SERVER (ACTIVE SESSIONS ARE TERMINATED)
# emgd -refresh

RELOAD SERVER (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.

