I have a USB GSM modem (HUAWEI E160). I got some software on a Windows laptop that lets me place phone calls and send texts via the modem, to regular phones. Is there any way to do something similar on UNIX/Linux?
What I'm trying to do is send NAGIOS alerts via phone. I've set up a script which creates an MP3 (Using text2wave and LAME) so all I need to do now is get it to send the audio file via a phone line, it doesn't have to do anything complicated other than;
Place the call
Wait for pick-up
Play the message
Hang up
There is always Asterisk. the open source PBX, which I believe, will allow you to do this, however, it would typically require an analogue or digital telephone line and an interface card. It may be able to ineract with your GSM device, but it's not something I've ever looked into.
Your best bet is to try and use AT commands; I happen to have one of the same devices (E160E) on my desk, but I've only ever used it as a data modem. Curiosly,
lsusb
reports it asBus 002 Device 006: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem
Have a look at How to Use Modem AT Commands for USB Modem at Linux; with "ATi^M" I got
Some common AT commands are linked from the 3G modem wiki; for the rest you'll need to look at the 3GPP specs linked from the top of that page. I'm no expert (you might get better luck at e.g. Super User) but if you have a look through the basic AT command set you might be able to work out how to dial a number, send your data, and then hang up.
You might find it easier to get it up and running using a phone with bluetooth and the chan_mobile module in Asterisk, the problem with using a USB connected GSM modem is getting the audio into it (placing data calls is easy)
You could also look at the 'Festival' system in Asterisk that does text-to-speech, rather than pre-record a load of MP3's it could read the alerts to you, not sure how well it'd get on pronouncing "SRVAX1B DOWN Ping No Response" but could be worth a shot.