⬆️ ⬇️

Personal hosting of SIM cards

Based on the program for managing a computer using SMS messages, I wrote a new one. This time the program accepts incoming SMS and forwards them to the specified number: From: 7XXXYYYYYYY: message . She calls incoming calls and sends, to the specified number, a message with the text: Call From: 7XXXYYYYYYY .



The program can be used to facilitate the transition from one mobile operator to another. If you forget to notify someone that you have a new number, then as soon as someone calls you to the old number or sends a message, you will know about it by receiving an SMS message.



Download the program here .



As in the first case, there are several files in the program's archive: the program itself ( SMSAM.exe ), the settings file ( options.ini ), several batch files for installation, removal of the program as a system service, and launch without installation.

')

Iron

It should work with any GSM modem or cell phone that can be connected in GSM modem mode. To determine the port number on which the modem “hangs”, you need to go to the control panel, open the Phone and modem panel on the Modems tab in the Connected to column to view the port number.



Setup and Startup

Before starting, you need to change the settings file (specify the port, register your number), make sure that no other programs running with the selected GSM modem (cell phone) are running on the computer.



To install the program as a service, you must run it with the -install key ( install.bat ). To uninstall -uninstall ( uninstall.bat ). To start without adding to system services -debug (it will not create windows at startup, for stopping you will have to kill through the process list).



The settings file is an ini file in which the parameters for connecting to the device are set.



[Settings]

; Port number on which the modem hangs

port = com8

rate = 115200

; Check interval in milliseconds

timeout = 5000

; Number to which notifications should be sent

replyTo = 7XXXYYYYYYY

; When you repeat the message or call from the number

; send notification only if passed

; specified number of seconds (flood protection)

; default 5 minutes

retryDelay = 300



Always ready to answer questions and listen to suggestions.

Source: https://habr.com/ru/post/71049/



All Articles