]> 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)
committerItzanh <itzanh@hotmail.es>
Thu, 12 Jun 2025 12:18:49 +0000 (12:18 +0000)
commit7ee6a3502d390fa0ed508a79109f00a1e0969e6f
tree5bc0834718b5099226674ff4af7f402ab602bcfb
parent435c36b557b96b3261c8c9c031761b0c295db694
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