summaryrefslogtreecommitdiff
path: root/addons/chan_ooh323.h
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2014-11-09 00:25:47 +0000
committerMatthew Jordan <mjordan@digium.com>2014-11-09 00:25:47 +0000
commitf10a8475b52bd208779196eac7055ff4f8e309fd (patch)
tree12eb61302bdcce88039ab1fad19026cbe13485ca /addons/chan_ooh323.h
parentffe194fd78a598931a8278ccf29d845460086dfe (diff)
addons/chan_mobile: Increase buffer size of UCS2 encoded SMS messages
When UCS2 character encoding is used, one symbol in national language can be expanded to 4 bytes. The current buffer used for receiving message in do_monitor_phone is 256 bytes, which is not large enough for incoming messages. For example: * AT+CMGR phone response prefix '+CMGR: "REC UNREAD","+7**********",,"14/10/29,13:31:39+12"\r\n' - 60 bytes * SMS body with UCS2 encoding (max) - 280 bytes * AT+CMGR phone response suffix '\r\n\r\nOK\r\n' - 8 bytes * Terminating null character - 1 byte This results in a needed buffer size of 349 bytes. Hence, this patch opts for a 350 byte buffer. ASTERISK-24468 #close Reported by: Dmitriy Bubnov patches: chan_mobile-1_8.diff uploaded by Dmitriy Bubnov (License 6651) chan_mobile-trunk.diff uploaded by Dmitry Bubnov (License 6651) ........ Merged revisions 427607 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 427610 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@427611 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'addons/chan_ooh323.h')
0 files changed, 0 insertions, 0 deletions