sms: 'Text' and 'Data' will never be given at the same time
When receiving an SMS, if the encoding is either GSM7 or UCS2, we will treat the contents of the SMS as text; and if the encoding is either 8BIT or unknown, we will just dump the contents of the SMS as data. When creating an SMS, the user is not allowed to give both text and data, only one can be given. We will use by default 8BIT when data is given, and guess the best encoding if text is given. Note that it's still possible to have SMS with neither text nor data, as in delivery status reports. This commit also handles the split of the input data in order to make it fit into singlepart or multipart messages.
This commit is contained in:
@@ -66,10 +66,12 @@
|
||||
<!--
|
||||
Text:
|
||||
|
||||
Message text.
|
||||
Message text, in UTF-8.
|
||||
|
||||
When sending, if the text is larger than the limit of the technology or
|
||||
modem, the message will be broken into multiple parts or messages.
|
||||
|
||||
Note that Text and Data are never given at the same time.
|
||||
-->
|
||||
<property name="Text" type="s" access="read" />
|
||||
|
||||
@@ -80,6 +82,8 @@
|
||||
|
||||
When sending, if the data is larger than the limit of the technology or
|
||||
modem, the message will be broken into multiple parts or messages.
|
||||
|
||||
Note that Text and Data are never given at the same time.
|
||||
-->
|
||||
<property name="Data" type="ay" access="read" />
|
||||
|
||||
|
Reference in New Issue
Block a user