Burps: Or.. I could just check the documentation ;) like this...
Sorry for the noise, I'll only come back if I have trouble...
|
Burps: Operating system name and version: Debian 7.0 Wheezy (testing)
Version of smsd: 3.1.14-1.2
Smsd installed from: package repository
Name and model of a modem / phone: No idea...
Interface: serial
Hello,
I have two modems, and I would like to setup things so that sms are written to a "generic" folder, then, according to the phone number, if it's for abroad it must use [GSM1], if it's for inside the country, it's for [GSM2].
I thought I might had to write a "daemon" or something tht would check the generic folder for new messages, then according to the number, would move the message to the "outgoing" folder for GSM1 or GSM2.
- Am I right in my thinking ?
- Does this already exist ?
Regards
|
Burps: Operating system name and version: Debian GNU/linux (etch, 4.0)
Version of smsd: smstools 3.0.262 (debian etch)
Smsd installed from: package repository
Name and model of a modem / phone: Wavecom (???)
Interface: serial
I have some trouble with my modem, which needs to be reset (too) often.
2011-08-02 09:00:06,5, GSM1: Modem is not registered, waiting 10 sec. before retrying
2011-08-02 09:00:16,7, GSM1: -> AT+CREG?
2011-08-02 09:00:17,7, GSM1: Command is sent, waiting for the answer
2011-08-02 09:00:17,7, GSM1: <- AT+CREG?
+CREG: 0,0
OK
When this happens, If I stop smstools, use minicom to send "AT+CFUN=0", then "AT+CFUN=1", then restarts smstools, everything is fine.
I'd like to automate this using an alarmhandler : but in the examples I've found on this forum, I see the commands (if I understand correctly) are sent through a CONTROLFILE (/var/lib/smsd/application/control) : this file does not exist on my distribution.
So, what would look like a correct alarmhandler script that would send "AT+CFUN=0" to my modem ?
Thanks in advance
|