]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_sms.c: Fix sending and receiving SMS messages in protocol 2
authorItzanh <itzanh@hotmail.es>
Sun, 6 Apr 2025 12:13:21 +0000 (14:13 +0200)
committerGeorge Joseph <gjoseph@sangoma.com>
Wed, 17 Sep 2025 17:40:15 +0000 (11:40 -0600)
commit8b670ea1be3979c9bdde3399663ed0cc19123890
tree05e6c168da241eaef47f21d4941e7851e0a74e96
parent61fc7ea667e1c23c9922cdbe1365d51fe2a6e412
app_sms.c: Fix sending and receiving SMS messages in protocol 2

This fixes bugs in SMS messaging to SMS-capable analog phones that prevented app_sms.c from talking to phones using SMS protocol 2.

- Fix MORX message reception (from phone to Asterisk) in SMS protocol 2
- Fix MTTX message transmission (from Asterisk to phone) in SMS protocol 2

One of the bugs caused messages to have random characters and junk appended at the end up to the character limit. Another bug prevented Asterisk from sending messages from Asterisk to the phone at all. A final bug caused the transmission from Asterisk to the phone to take a long time because app_sms.c did not hang up after correctly sending the message, causing the phone to have to time out and hang up in order to complete the message transmission.

This was tested with a Linksys PAP2T and with a GrandStream HT814, sending and receiving messages with Telefónica DOMO Mensajes phones from Telefónica Spain. I had to play with both the network jitter buffer and the dB gain to get it to work. One of my phones required the gain to be set to +3dB for it to work, while another required it to be set to +6dB.

Only MORX and MTTX were tested, I did not test sending and receiving messages to a TelCo SMSC.
apps/app_sms.c