SMS Gateway 4.4 - User's Guide
6. Receiving a message
When SMS Gateway connects to an SMSC using a protocol that supports bi-directional messaging it is possible to receive messages sent from a mobile device.
After receiving a message SMS Gateway executes a program or script defined by the configuration keyword
EXECUTE_AFTER_RECEIVE.
Example gateway definition for a bi-directional SMSC:
GATEWAY=DEFAULT:Default:IP:192.165.99.208:9971:CIMD2:MODE=SR
RETRIEVE_MESSAGE=20
EXECUTE_AFTER_RECEIVE=/usr/local/bin/smsafter
Using the above SMS Gateway will poll the SMSC for new messages every 20 seconds and when a message arrives it will be passed on to /usr/local/bin/smsafter.



