Small overview of what I use:
Raspberry Pi with a 16-SIM modem connected.
Each time an SMS is received a PHP script is called, SMS details are parsed and processed. So far all is perfect!
But.. Sometimes I would like to add more SIM cards, or replace etc.
What I would like:
- Some sort of eventhandler call that triggers when a SIM is taken out (or not working, etc). And also a call when a SIM is inserted.
That way I can order the modem to send an SMS to another modem, through that process I can automatically collect the MSISDN.
Send an SMS to the new SIM and collect the IMSI too.
- When I have all that data, I would like to automatically create the config file with the updated details (As I use the number = xxxx, I need to update the config).
So, I now have this:
[default]
init = ...
baudrate = 115200
incoming = high
[GSM1]
device = ...
number = xx
[GSM2]
device = ...
number = xx
etc.
init = ...
baudrate = 115200
incoming = high
[GSM1]
device = ...
number = xx
[GSM2]
device = ...
number = xx
etc.
'smsdconf' Syntax Highlight powered by GeSHi
I would like this:
[default]
init = ...
baudrate = 115200
incoming = high
[GSM1]
include = /var/conf/GSM1.conf
[GSM2]
include = /var/conf/GSM2.conf
etc.
init = ...
baudrate = 115200
incoming = high
[GSM1]
include = /var/conf/GSM1.conf
[GSM2]
include = /var/conf/GSM2.conf
etc.
'smsdconf' Syntax Highlight powered by GeSHi
That way I can create the conf for each modem through automated processes. Restart sms3 and be on my way....
I can include 16 confs, 1 for each modem and only update the modem conf when needed.
Hope this makes sense?