]> 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>
Thu, 26 Jun 2025 18:25:13 +0000 (12:25 -0600)
commitc7582d65368a9c666ac63cdf40fcf50974f6536b
tree318dcf9f2dde4b392dd9ac19f7070322758a63d2
parent273d84ae573e9963bcda65b6c559c118493d6fb0
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.

(cherry picked from commit 7ee6a3502d390fa0ed508a79109f00a1e0969e6f)
apps/app_sms.c