On Jan 9, 2018, at 9:47 AM, Roderick <hru...@gmail.com> wrote: > > > > On Tue, 9 Jan 2018, Israel Brewster wrote: > >> Well, as I said I'm using SMSTools - it's in ports - comms/smstools. >> No special program or extended AT commands, at least not on my end. >> I just call the command line "sendsms" that smstools provides. >> Easy peasy. I haven't looked at the source to see what it does under >> the hood. > > You mean this: > > http://smstools3.kekekasvi.com/ > > There you read: > > "This software needs a GSM modem (or mobile phone) with SMS command set > according to the european specifications GSM 07.05 (=ETSI TS 300 585) and > GSM 03.38 (=ETSI TS 100 900). AT command set is supported." > > And the links I gave you name some commands for sending and receiving > SMS. And if you want to write a script to talk with the modem, then expect > is the tool. Do you need concurrency? Many people on a network sending > SMS through the same modem?
Yep, that's the page. Not sure why I would want to write a script using expect to talk to the modem directly though, unless smstools doesn't work for some reason. Using smstools, all you have to do is call the command-line "sendsms" with the number and the message. Or even just by creating a text file in the spool directory. No need for expect or any fancy scripting. That said, all the references on that page refer to a GSM modem, not a LTE modem. My knowledge of cellular protocols is quite limited, but if that's an issue, then maybe I would need to use expect or the like to talk to the modem directly. No, I don't need concurrency. Primarily this would just be a backup communications channel for our network monitor should it be unable to reach the mailserver for any reason. For example, should the switch the network monitor box is connected to die, it should still be able to send a SMS notifying of the failure. Also, I find that for the more important notifications, SMS gets noticed more easily than e-mail. While we may use it occasionally for other purposes as well, the total usage will still be quite light, so no need to get overly fancy. ----------------------------------------------- Israel Brewster Systems Analyst II Ravn Alaska 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7293 ----------------------------------------------- > > Rodrigo. >