SMS(name[,options,addr,body])
Full arguments reference
namerequired - The name of the queue used in/var/spool/asterisk/smsoptionsa- Answer, i.e. send initial FSK packet.s- Act as service centre talking to a phone.t- Use protocol 2 (default used is protocol 1).p- Set the initial delay to N ms (default is300). addr and body are a deprecated format to send messages out.r- Set the Status Report Request (SRR) bit.o- The body should be coded as octets not 7-bit symbols.n- Do not log any SMS content to log file (privacy).
addrbody
SMS handles exchange of SMS data with a call to/from SMS capable phone or SMS PSTN service center. Can send and/or receive SMS messages. Works to ETSI ES 201 912; compatible with BT SMS PSTN service in UK and Telecom Italia in Italy. It has also been tested to work with DOMO phones from Telefónica Spain.
Typical usage is to use to handle calls from the SMS service centre CLI, or to set up a call using outgoing or manager interface to connect service centre to SMS().
"Messages are processed as per text file message queues. smsq (a separate software) is a command to generate message queues and send messages.
Note
The protocol has tight delay bounds. Please use short frames and disable/keep short the jitter buffer on the ATA to make sure that responses (ACK etc.) are received in time. It is also important to adjust the gain dB of the ATA. Some Telefónica DOMO Mensajes phones may require the gain to be set to +3dB, and others even up to +6dB, in order to work.
namerequired - The name of the queue used in/var/spool/asterisk/smsoptionsa- Answer, i.e. send initial FSK packet.s- Act as service centre talking to a phone.t- Use protocol 2 (default used is protocol 1).p- Set the initial delay to N ms (default is300). addr and body are a deprecated format to send messages out.r- Set the Status Report Request (SRR) bit.o- The body should be coded as octets not 7-bit symbols.n- Do not log any SMS content to log file (privacy).
addrbody
User Notes
Know a tip or gotcha for this topic? Share it below and help others.
Contribute a note
Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.