[asterisk-users] How to send SMS to Gigaset phones ?

Anselm Martin Hoffmeister anselm at hoffmeister-online.de
Mon Sep 13 12:35:43 CDT 2010


Hi Olivier,

I remember having had a similar discussion a few years ago. I will paste
my postings from around May 2007 further down.

First, I did not try sending SMS over VOIP to the phone, just over Voip
to an ATA and then over analogue line (or ISDN) to the phone. So I have
no idea wether the new Gigaset VoIP phones will to 1200 baud mumbo SMS
phone service over a Sip voice channel or if Gigaset invented something
better by now. You will have to try yourself.

As for Gigaset phones connected via (at least one cable of ;-> )
landline, you can send SMS messages to those with smsq. In theory that
should also work on other "landline SMS" capable phones.

Am Montag, den 13.09.2010, 11:04 +0200 schrieb Olivier:
> Hi,
> 
> Searching this list archives, I couldn't find a definitive answer to
> my question :
> how to send SMS to Gigaset phones ?
> 
> My goal is to send Alert SMS such as "This phone system will be
> stopped in 5mn for maintenance" to every terminal (SIP phones and
> Gigaset DECT phones).
> (So at the moment, I'm not looking for way to send SMS from handsets).

== Message 1 (from myself, 2007-May-22)
>The SMSq stuff is for landline-type SMS, like those that never became
>really popular here in Europe ;-) I do not know of any SIP hardphone
>that supports them, but regular analog and ISDN handsets behind a
>SIP-to-analog/ISDN gateway work for me.
>
>The point of this SMS transfer method is calling the destination handset
>with a certain callerid set (which differs between countries - whatever
>number the telco prefers to choose - this can also be configured in the
>phone). The phone will not ring but instead immediately answer the call
>and receive the short message at 1200bps whatever modem standard they
>chose to use.
>
>For sending SMS, the handset will call a similarly telco-provided number
>(premium-rate numbers here in Germany - maybe that is the reason for the
>lack of popularity of this service) and do that 1200bps talk.
>
>If you still think you can make use of it, make sure to call "smsq" with
>the user id that asterisk is running as. That _might_ already do the
>trick. If you do not get it running, ask again - I might have a working
>setup somewhere around ;-)
>
>Nevertheless, for me, landline SMS is a PITA. The only great thing is
>you can upload Ringtones to Siemens gigaset phones.

== Message 2 (from myself, 2007-May-22)
Just to get you started, try this:

Find out which user asterisk runs as. Get a shell for that user.
Run (all in one line)

smsq --mt --oa=321 --mttx-callerid=01930101 --mttx-channel=SIP/abcde
"message text goes here"

where "321" will displayed as sender id on the handset, and "01930101"
will have to replaced by the mobile center known to your phone, plus "1"
at the end - the German T-Com seems to use 0193010, and this setting
works for me. Further, SIP/abcde must be the channel that a SMS-capable
handset is available on: If you have some ATA with a DECT handset
connected, or similar, use the channel name exactly as you would in the
Dial() command.

First thing to find out is if this works. Be sure to have asterisk in
extra-verbose running a console to see what happens.

If the mobile handset rings (instead of getting the SMS) either the
01930101 number has not been set correctly or it probably is not
compatible with Asterisk SMS.

Once you get this far, you would need the other way round. When your
mobile phone tries to _send_ a text message, it will go to 01930100 (sms
center number plus "0"). You will have to care for that in your
extensions.conf, like this

exten => 01930100,1,Wait(2)
exten => 01930100,2,Answer()
exten => 01930100,3,Wait(2)
exten => 01930100,4,SMS(01930100,as)
exten => 01930100,5,Wait(2)
exten => 01930100,6,Hangup()

In my experience those Wait(2) improve reliability over internet
connections, they probably are superfluous if you have reliable
low-latency LAN. For me, they made the difference between 10/100 and
95/100 successfuly sent messages.

You will have to write your own scriptwork to play with the files that
will be created from those commands. Their structure is simple, you will
find out.

Sending EMS (for ringtones and bitmaps) is a bit more complex, you will
need the UDH flag for that. I think I documented that once on this ML
but am not sure. However, it is possible with some Siemens Gigaset
devices, and pictures or monophonic ringtones.

== Message 3 (2006-Nov-12)
can be found at http://www.mail-archive.com/asterisk-dev@lists.digium.com/msg24205.html

with an example of how to send an EMS (message with picture attached). This worked with
both monochrome pictures and single-track MIDI ringtones on my Gigaset S1 back then.
Never got around to sending multi-track ringtones though.

==

Best regards

Anselm



More information about the asterisk-users mailing list