[asterisk-bugs] [JIRA] (ASTERISK-24468) Incoming UCS2 encoded SMS truncated if SMS length exceeds 50 (roughly) national symbols
Dmitriy Bubnov (JIRA)
noreply at issues.asterisk.org
Wed Oct 29 09:00:29 CDT 2014
Dmitriy Bubnov created ASTERISK-24468:
-----------------------------------------
Summary: Incoming UCS2 encoded SMS truncated if SMS length exceeds 50 (roughly) national symbols
Key: ASTERISK-24468
URL: https://issues.asterisk.org/jira/browse/ASTERISK-24468
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Addons/chan_mobile
Environment: All
Reporter: Dmitriy Bubnov
Severity: Critical
One symbol in national language expanded to 4 bytes when UCS2 character encoding used.
So, size of 256 bytes for receiving buffer {{buf}} in function {{do_monitor_phone}} is not enough for incoming UCS2 encoded SMS, which is longer than 50 national symbols. I suggest just make this buffer 4 times bigger, namely 1024 bytes, instead of current 256 bytes.
Such modification will make incoming SMS in UCS2 encoding to not be truncated. Provided patch reclaims truncation only for incoming SMS, and not affect outgoing SMS.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list