]> 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)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Thu, 12 Jun 2025 12:18:56 +0000 (12:18 +0000)
commitdbe7c0c5b3cbae61b8b58c153cd603487890a761
tree34eacd05b3ab6bdc6713da71bcfcf50e4f42eab2
parentc753fe44d165c723d6106dcf6abc6fa83d251405
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