@@ -700,6 +700,10 @@ <h3>Steps</h3>
700
700
< li > Set the < code > deliveryStatus</ code > parameter of the
701
701
< code > SmsMessage</ code > to 'success' or 'error' depending on the reported
702
702
result.
703
+ < li > Set the < code > deliveryTimestamp</ code > of the < code > SmsMessage</ code >
704
+ to the delivery time of the SMS message, i.e. the TP-Discharge-Time (TP
705
+ DT) parameter included in the SMS-STATUS-REPORT Protocol Data Unit
706
+ [[!GSM-SMS]].
703
707
< li > < a > Queue a task</ a > to < a > fire an event</ a > named
704
708
< a > deliverysuccess</ a > or < a > deliveryfailure</ a > respectively if the
705
709
delivery was successfull or not, with
@@ -708,8 +712,10 @@ <h3>Steps</h3>
708
712
< code > SmsMessage</ code > to which this confirmation is related,
709
713
< li > the < code > serviceID</ code > attribute set to the identifier of the
710
714
service used to send such message, and
711
- < li > the < code > recipients</ code > attribute set to the recipient of such
712
- message.
715
+ < li > the first item in the < code > recipients</ code > attribute set to the
716
+ recipient of such message.
717
+ < li > the first item in the < code > deliveryTimestamps</ code > attribute set
718
+ to delivery time of such message.
713
719
</ ol >
714
720
< li > < a > Queue a task</ a > to fire a system message of type
715
721
< code > < a > DeliveryReport</ a > </ code > named < a > deliverysuccess</ a > or
@@ -720,8 +726,10 @@ <h3>Steps</h3>
720
726
< code > SmsMessage</ code > to which this confirmation is related,
721
727
< li > the < code > serviceID</ code > attribute set to the identifier of the
722
728
service used to send such message, and
723
- < li > the < code > recipients</ code > attribute set to the recipient of such
724
- message.
729
+ < li > the first item in the < code > recipients</ code > attribute set to the
730
+ recipient of such message.
731
+ < li > the first item in the < code > deliveryTimestamps</ code > attribute set
732
+ to delivery time of such message.
725
733
</ ol >
726
734
</ ol >
727
735
@@ -1013,7 +1021,7 @@ <h3>Steps</h3>
1013
1021
parameter.
1014
1022
< li > Set the < code > state</ code > of the < code > MmsMessage</ code > to
1015
1023
'sending'.
1016
- < li > Add a new item in the < code > deliveryStatusArray </ code > of the
1024
+ < li > Add a new item in the < code > deliveryInfo </ code > attribute of the
1017
1025
< code > MmsMessage</ code > for each unique recipient included in the
1018
1026
< code > to</ code > , < code > cc</ code > and < code > bcc</ code > parameters (i.e. a
1019
1027
single item if the same address has multiple ocurrences across these
@@ -1035,7 +1043,7 @@ <h3>Steps</h3>
1035
1043
< ol >
1036
1044
< li > If a delivery report had been requested set the
1037
1045
< code > deliveryStatus</ code > attribute of the different items in the
1038
- < code > deliveryStatusArray </ code > attribute of the
1046
+ < code > deliveryInfo </ code > array attribute of the
1039
1047
< code > MmsMessage</ code > to 'error'.
1040
1048
< li > call < var > resolver</ var > 's < code > reject(value)</ code > method with
1041
1049
< var > error</ var > as < code > value</ code > argument.
@@ -1152,8 +1160,8 @@ <h3>Steps</h3>
1152
1160
</ ol >
1153
1161
< li > Set the < code > state</ code > of the < code > MmsMessage</ code > to
1154
1162
'received'.
1155
- < li > Add a new item in the < code > deliveryStatusArray </ code > of the
1156
- < code > MmsMessage</ code > for each unique recipient included in the
1163
+ < li > Add a new item in the < code > deliveryInfo </ code > array attribute of
1164
+ the < code > MmsMessage</ code > for each unique recipient included in the
1157
1165
'To', 'Cc' and 'Bcc' fields (i.e. a single item if the same address
1158
1166
has multiple ocurrences across these parameters), with the
1159
1167
< code > recipient</ code > attribute set to this recipient's address and
@@ -1226,15 +1234,23 @@ <h3>Steps</h3>
1226
1234
< p > Upon a delivery report of a previously sent MMS message being received, the
1227
1235
< a > user agent</ a > MUST
1228
1236
< ol >
1229
- < li > For each of the items in the < code > deliveryStatusArray </ code >
1237
+ < li > For each of the items in the < code > deliveryInfo </ code > array
1230
1238
attribute of the < code > MmsMessage</ code > whose < code > recipient</ code >
1231
1239
attribute matches one of the recipients of the MMS to which the delivery
1232
- report is related, set its < code > deliveryStatus </ code > attribute
1240
+ report is related,
1233
1241
< ol >
1234
- < li > to 'success', if the value of the X-Mms-Status element [[!MMS13]]
1235
- in the delivery report is 'Retrieved', or
1236
- < li > to 'error', if the value of the X-Mms-Status element [[!MMS13]] in
1237
- the delivery report is 'Expired', 'Rejected' or 'Unreachable'
1242
+ < li > set its < code > deliveryStatus</ code > attribute:
1243
+ < ol >
1244
+ < li > to 'success', in case of successful delivery, i.e. if the
1245
+ value of the X-Mms-Status element in the M-Delivery.ind Protocol
1246
+ Data Unit [[!MMS13]] is 'Retrieved', or
1247
+ < li > to 'error', in case of failed delivery, i.e. if the value of
1248
+ the X-Mms-Status element in the the M-Delivery.ind Protocol Data
1249
+ Unit [[!MMS13]] is 'Expired', 'Rejected' or 'Unreachable'.
1250
+ </ ol >
1251
+ < li > set its < code > deliveryTimestamp</ code > attribute to the delivery
1252
+ time, i.e. the 'Date' field in the M-Delivery.ind Protocol Data Unit
1253
+ [[!MMS13]], in case of successful delivery.
1238
1254
</ ol >
1239
1255
< li > < a > Queue a task</ a > to < a > fire an event</ a > named
1240
1256
< a > deliverysuccess</ a > or < a > deliveryfailure</ a > respectively if the
@@ -1245,7 +1261,11 @@ <h3>Steps</h3>
1245
1261
< li > the < code > serviceID</ code > attribute set to the identifier of the
1246
1262
service used to send such message, and
1247
1263
< li > the < code > recipients</ code > attribute set to the subset of the
1248
- original recipients to which this delivery report is related.
1264
+ original recipients to which this delivery report is related, and
1265
+ < li > in case of successful delivery, with each of the items in the
1266
+ < code > deliveryTimestamps</ code > attribute set to the delivery time of
1267
+ the MMS message to the corresponding recipient, i.e. that in the
1268
+ same position of the < code > recipients</ code > array.
1249
1269
</ ol >
1250
1270
< li > < a > Queue a task</ a > to fire a system message of type
1251
1271
< code > < a > DeliveryReport</ a > </ code > named < a > deliverysuccess</ a > or
@@ -1255,9 +1275,13 @@ <h3>Steps</h3>
1255
1275
< li > the < code > messageID</ code > attribute set to the identifier of the
1256
1276
< code > MmsMessage</ code > to which this confirmation is related,
1257
1277
< li > the < code > serviceID</ code > attribute set to the identifier of the
1258
- service used to send such message, and
1278
+ service used to send such message, and
1259
1279
< li > the < code > recipients</ code > attribute set to the recipient of such
1260
- message.
1280
+ message, and
1281
+ < li > in case of successful delivery, with each of the items in the
1282
+ < code > deliveryTimestamps</ code > attribute set to the delivery time of
1283
+ the MMS message to the corresponding recipient, i.e. that in the
1284
+ same position of the < code > recipients</ code > array.
1261
1285
</ ol >
1262
1286
</ ol >
1263
1287
@@ -1393,7 +1417,13 @@ <h2><a>SmsMessage</a> Interface</h2>
1393
1417
< dd > MUST return the delivery status of the SMS message.
1394
1418
</ dd >
1395
1419
1396
- < dt > readonly attribute MessageClass messageClass</ dt >
1420
+ < dt > readonly attribute Date? deliveryTimestamp</ dt >
1421
+ < dd > MUST return for sent messages the delivery date as reported in the
1422
+ TP-Discharge-Time (TP DT) parameter included in the SMS-STATUS-REPORT
1423
+ Protocol Data Unit or null if there is no positive knowledge about the
1424
+ delivery of the message. MUST return null for received messages.</ dd >
1425
+
1426
+ < dt > readonly attribute MessageClass messageClass</ dt >
1397
1427
< dd > MUST return the SMS message class, according to the value indicated in
1398
1428
the TP-Data-Coding-Scheme (TP-DCS) field of the SMS.</ dd >
1399
1429
@@ -1465,9 +1495,10 @@ <h2><a>MmsMessage</a> Interface</h2>
1465
1495
< dt > readonly attribute MmsState state</ dt >
1466
1496
< dd > MUST return the status of the MMS message.</ dd >
1467
1497
1468
- < dt > readonly attribute MmsDeliveryStatus [] deliveryStatusArray </ dt >
1498
+ < dt > readonly attribute MmsDeliveryInfo [] deliveryInfo </ dt >
1469
1499
< dd > MUST return an array with each of the items indicating the delivery
1470
- status to each of the recipients of the message.</ dd >
1500
+ status and, if applicable, the delivery time to each of the recipients of the
1501
+ message.</ dd >
1471
1502
1472
1503
</ dl >
1473
1504
</ section >
@@ -1535,18 +1566,23 @@ <h2><a>MmsAttachment</a> Dictionary</h2>
1535
1566
</ dl >
1536
1567
</ section >
1537
1568
1538
- <!------------------------ Dictionary MmsDeliveryStatus -------------------->
1569
+ <!------------------------ Dictionary MmsDeliveryInfo -------------------->
1539
1570
< section >
1540
- < h2 > < a > MmsDeliveryStatus </ a > Dictionary</ h2 >
1541
- < dl title ="dictionary MmsDeliveryStatus " class ="idl ">
1571
+ < h2 > < a > MmsDeliveryInfo </ a > Dictionary</ h2 >
1572
+ < dl title ="dictionary MmsDeliveryInfo " class ="idl ">
1542
1573
< dt > DeliveryStatus deliveryStatus</ dt >
1543
1574
< dd >
1544
- The delivery status of the MMS message
1575
+ The delivery status of the MMS message to a specific recipient.
1545
1576
</ dd >
1546
1577
< dt > DOMString recipient</ dt >
1547
1578
< dd >
1548
1579
The recipient of the MMS to which the delivery status is related.
1549
1580
</ dd >
1581
+ < dt > Date deliveryTimestamp</ dt >
1582
+ < dd > The time the message was delivered to the recipient, i.e. the 'Date'
1583
+ field in the M-Delivery.ind Protocol Data Unit [[!MMS13]]. It is not
1584
+ provided if there is no positive knowledge about the delivery of the
1585
+ message.</ dd >
1550
1586
</ dl >
1551
1587
</ section >
1552
1588
@@ -1692,6 +1728,13 @@ <h2><a>DeliveryReport</a> Interface</h2>
1692
1728
related to an SMS message then the array will contain a single item
1693
1729
corresponding to the single recipient of the SMS message.
1694
1730
</ dd >
1731
+ < dt > readonly attribute Date[]? deliveryTimestamps</ dt >
1732
+ < dd > MUST return an array containing the delivery dates for each of the
1733
+ recipients to which this delivery report event relates. Each element in the
1734
+ array refers to the recipient in the same position of the
1735
+ < code > recipients</ code > array. It MUST return null if case of delivery
1736
+ failure (e.g. message expired)
1737
+ </ dd >
1695
1738
</ dl >
1696
1739
</ section >
1697
1740
@@ -1732,6 +1775,13 @@ <h2><a>DeliveryReportEvent</a> Interface</h2>
1732
1775
related to an SMS message then the array will contain a single item
1733
1776
corresponding to the single recipient of the SMS message.
1734
1777
</ dd >
1778
+ < dt > readonly attribute Date[]? deliveryTimestamps</ dt >
1779
+ < dd > MUST return an array containing the delivery dates for each of the
1780
+ recipients to which this delivery report event relates. Each element in the
1781
+ array refers to the recipient in the same position of the
1782
+ < code > recipients</ code > array. It MUST return null if case of delivery
1783
+ failure (e.g. message expired)
1784
+ </ dd >
1735
1785
</ dl >
1736
1786
</ section >
1737
1787
0 commit comments