|
SMSServer
Introduction to SMSServer
SMSServerIntroductionSMSServer is a small application that you can use for sending and receiving SMS messages without writing your own code. The new SMSServer is fully configurable and can be easily extended. It it based on two new concepts:
SMSServer Application PackageSMSServer is located in org.smslib.smsserver package. Refer to the Installation instructions for information on how to build SMSServer. Configuration FileSMSServer is controlled with a configuration file named SMSServer.conf. There is a sample conf in the standard distribution package for your reference. SMSServer expects to find its configuration file in the current (i.e. run from) directory. If you wish to instruct SMSServer to look elsewhere, use the -Dsmsserver.configdir parameter. A sample SMSServer invocation will be like: java -Dsmsserver.configdir=/path/to/where/conf/exists/ org.smslib.smsserver.SMSServer You can also use the -Dsmsserver.configfile parameter. This should point to the configuration file (filename should be included), for example: java -Dsmsserver.configfile=/path/to/where/conf/exists/MyConfig.cfg org.smslib.smsserver.SMSServer The configuration file holds a number of directives which configure SMSServer. There is a sample configuration file located in SMSServer directory - have a look for a real life configuration file. Gateway configuration sectionYou must define at least one gateway in the configuration file. Each gateway has its own set of configurable items. For more information about the implemented gateways, look at the Gateways documentation pages. Interface Configuration SectionInterfaces are not mandatory, but I guess there is no reason to run SMSServer without any persistent storage at all... Please note that all active interfaces take part in the message propagation.</p For more information about the implemented interfaces, look at the Interfaces documentation pages. Operation Configuration SectionThe following settings configure the general operation of SMSServer:
Notes:
Optional Parameters - Balancers and Routers.You can modify the default balancer and/or router that SMSServer uses by setting the following directives.
SMSServer command line parametersIf you supply -runonce at the command line when you run SMSServer, SMSServer will run once, send all pending messages in the database and exit. SMSServer as a Windows ServiceIf you are interested in running SMSServer as a Windows Service, Mehrdad Abdoli (thanks Mehrdad!) has written some detailed instructions on how to do this. You may find this post here. |
Sign in to add a comment