Sending sms notifications for various tasks/products is a quite popular feature. In order to test such a feature you would require a SMS simulator which is an application that would act as a Short Message Service Center(SMSC) In this post , I will explain how you can setup logica SMS Simulator.
1. Download https://github.com/smn/logica-smpp-sim as a zip folder .
2. Unzip the folder and you should find a start.sh inside it.
3. From your terminal go to the unzipped folder location and execute start.sh like below.
Note: inside the unzipped folder you can find user.txt file. This is where you can add your configurations regarding your systemId, password and timeout details. For example, say that you use axis2, and have a configuration as below.
So in order to capture messages sent through this transport, you need to add below content to user.txt before you start the simulator. And also when requested for port number, you should provide 2775 as the value according to above example.
Note: When adding a new user definition in user.txt file , remember not to add any spaces between name value pairs. For example, name= bps1 and name=bps1 are considered as two users. Since the spaces won't be removed this can cause an error where bps1 user will not be authenticated. Also do not add any blank lines between a user definition, as a new line interprets a new user.