@@ -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
@@ -1015,7 +1023,7 @@ <h3>Steps</h3>
1015
1023
parameter.
1016
1024
< li > Set the < code > state</ code > of the < code > MmsMessage</ code > to
1017
1025
'sending'.
1018
- < li > Add a new item in the < code > deliveryStatusArray </ code > of the
1026
+ < li > Add a new item in the < code > deliveryInfo </ code > attribute of the
1019
1027
< code > MmsMessage</ code > for each unique recipient included in the
1020
1028
< code > to</ code > , < code > cc</ code > and < code > bcc</ code > parameters (i.e. a
1021
1029
single item if the same address has multiple ocurrences across these
@@ -1037,7 +1045,7 @@ <h3>Steps</h3>
1037
1045
< ol >
1038
1046
< li > If a delivery report had been requested set the
1039
1047
< code > deliveryStatus</ code > attribute of the different items in the
1040
- < code > deliveryStatusArray </ code > attribute of the
1048
+ < code > deliveryInfo </ code > array attribute of the
1041
1049
< code > MmsMessage</ code > to 'error'.
1042
1050
< li > call < var > resolver</ var > 's < code > reject(value)</ code > method with
1043
1051
< var > error</ var > as < code > value</ code > argument.
@@ -1145,8 +1153,8 @@ <h3>Steps</h3>
1145
1153
</ ol >
1146
1154
< li > Set the < code > state</ code > of the < code > MmsMessage</ code > to
1147
1155
'received'.
1148
- < li > Add a new item in the < code > deliveryStatusArray </ code > of the
1149
- < code > MmsMessage</ code > for each unique recipient included in the
1156
+ < li > Add a new item in the < code > deliveryInfo </ code > array attribute of
1157
+ the < code > MmsMessage</ code > for each unique recipient included in the
1150
1158
'To', 'Cc' and 'Bcc' fields (i.e. a single item if the same address
1151
1159
has multiple ocurrences across these parameters), with the
1152
1160
< code > recipient</ code > attribute set to this recipient's address and
@@ -1217,15 +1225,23 @@ <h3>Steps</h3>
1217
1225
< p > Upon a delivery report of a previously sent MMS message being received, the
1218
1226
< a > user agent</ a > MUST
1219
1227
< ol >
1220
- < li > For each of the items in the < code > deliveryStatusArray </ code >
1228
+ < li > For each of the items in the < code > deliveryInfo </ code > array
1221
1229
attribute of the < code > MmsMessage</ code > whose < code > recipient</ code >
1222
1230
attribute matches one of the recipients of the MMS to which the delivery
1223
- report is related, set its < code > deliveryStatus </ code > attribute
1231
+ report is related,
1224
1232
< ol >
1225
- < li > to 'success', if the value of the X-Mms-Status element [[!MMS13]]
1226
- in the delivery report is 'Retrieved', or
1227
- < li > to 'error', if the value of the X-Mms-Status element [[!MMS13]] in
1228
- the delivery report is 'Expired', 'Rejected' or 'Unreachable'
1233
+ < li > set its < code > deliveryStatus</ code > attribute:
1234
+ < ol >
1235
+ < li > to 'success', in case of successful delivery, i.e. if the
1236
+ value of the X-Mms-Status element in the M-Delivery.ind Protocol
1237
+ Data Unit [[!MMS13]] is 'Retrieved', or
1238
+ < li > to 'error', in case of failed delivery, i.e. if the value of
1239
+ the X-Mms-Status element in the the M-Delivery.ind Protocol Data
1240
+ Unit [[!MMS13]] is 'Expired', 'Rejected' or 'Unreachable'.
1241
+ </ ol >
1242
+ < li > set its < code > deliveryTimestamp</ code > attribute to the delivery
1243
+ time, i.e. the 'Date' field in the M-Delivery.ind Protocol Data Unit
1244
+ [[!MMS13]], in case of successful delivery.
1229
1245
</ ol >
1230
1246
< li > < a > Queue a task</ a > to < a > fire an event</ a > named
1231
1247
< a > deliverysuccess</ a > or < a > deliveryfailure</ a > respectively if the
@@ -1236,7 +1252,11 @@ <h3>Steps</h3>
1236
1252
< li > the < code > serviceID</ code > attribute set to the identifier of the
1237
1253
service used to send such message, and
1238
1254
< li > the < code > recipients</ code > attribute set to the subset of the
1239
- original recipients to which this delivery report is related.
1255
+ original recipients to which this delivery report is related, and
1256
+ < li > in case of successful delivery, with each of the items in the
1257
+ < code > deliveryTimestamps</ code > attribute set to the delivery time of
1258
+ the MMS message to the corresponding recipient, i.e. that in the
1259
+ same position of the < code > recipients</ code > array.
1240
1260
</ ol >
1241
1261
< li > < a > Queue a task</ a > to fire a system message of type
1242
1262
< code > < a > DeliveryReport</ a > </ code > named < a > deliverysuccess</ a > or
@@ -1246,9 +1266,13 @@ <h3>Steps</h3>
1246
1266
< li > the < code > messageID</ code > attribute set to the identifier of the
1247
1267
< code > MmsMessage</ code > to which this confirmation is related,
1248
1268
< li > the < code > serviceID</ code > attribute set to the identifier of the
1249
- service used to send such message, and
1269
+ service used to send such message, and
1250
1270
< li > the < code > recipients</ code > attribute set to the recipient of such
1251
- message.
1271
+ message, and
1272
+ < li > in case of successful delivery, with each of the items in the
1273
+ < code > deliveryTimestamps</ code > attribute set to the delivery time of
1274
+ the MMS message to the corresponding recipient, i.e. that in the
1275
+ same position of the < code > recipients</ code > array.
1252
1276
</ ol >
1253
1277
</ ol >
1254
1278
@@ -1384,7 +1408,13 @@ <h2><a>SmsMessage</a> Interface</h2>
1384
1408
< dd > MUST return the delivery status of the SMS message.
1385
1409
</ dd >
1386
1410
1387
- < dt > readonly attribute MessageClass messageClass</ dt >
1411
+ < dt > readonly attribute Date? deliveryTimestamp</ dt >
1412
+ < dd > MUST return for sent messages the delivery date as reported in the
1413
+ TP-Discharge-Time (TP DT) parameter included in the SMS-STATUS-REPORT
1414
+ Protocol Data Unit or null if there is no positive knowledge about the
1415
+ delivery of the message. MUST return null for received messages.</ dd >
1416
+
1417
+ < dt > readonly attribute MessageClass messageClass</ dt >
1388
1418
< dd > MUST return the SMS message class, according to the value indicated in
1389
1419
the TP-Data-Coding-Scheme (TP-DCS) field of the SMS.</ dd >
1390
1420
@@ -1456,9 +1486,10 @@ <h2><a>MmsMessage</a> Interface</h2>
1456
1486
< dt > readonly attribute MmsState state</ dt >
1457
1487
< dd > MUST return the status of the MMS message.</ dd >
1458
1488
1459
- < dt > readonly attribute MmsDeliveryStatus [] deliveryStatusArray </ dt >
1489
+ < dt > readonly attribute MmsDeliveryInfo [] deliveryInfo </ dt >
1460
1490
< dd > MUST return an array with each of the items indicating the delivery
1461
- status to each of the recipients of the message.</ dd >
1491
+ status and, if applicable, the delivery time to each of the recipients of the
1492
+ message.</ dd >
1462
1493
1463
1494
</ dl >
1464
1495
</ section >
@@ -1527,18 +1558,23 @@ <h2><a>MmsAttachment</a> Dictionary</h2>
1527
1558
</ dl >
1528
1559
</ section >
1529
1560
1530
- <!------------------------ Dictionary MmsDeliveryStatus -------------------->
1561
+ <!------------------------ Dictionary MmsDeliveryInfo -------------------->
1531
1562
< section >
1532
- < h2 > < a > MmsDeliveryStatus </ a > Dictionary</ h2 >
1533
- < dl title ="dictionary MmsDeliveryStatus " class ="idl ">
1563
+ < h2 > < a > MmsDeliveryInfo </ a > Dictionary</ h2 >
1564
+ < dl title ="dictionary MmsDeliveryInfo " class ="idl ">
1534
1565
< dt > DeliveryStatus deliveryStatus</ dt >
1535
1566
< dd >
1536
- The delivery status of the MMS message
1567
+ The delivery status of the MMS message to a specific recipient.
1537
1568
</ dd >
1538
1569
< dt > DOMString recipient</ dt >
1539
1570
< dd >
1540
1571
The recipient of the MMS to which the delivery status is related.
1541
1572
</ dd >
1573
+ < dt > Date deliveryTimestamp</ dt >
1574
+ < dd > The time the message was delivered to the recipient, i.e. the 'Date'
1575
+ field in the M-Delivery.ind Protocol Data Unit [[!MMS13]]. It is not
1576
+ provided if there is no positive knowledge about the delivery of the
1577
+ message.</ dd >
1542
1578
</ dl >
1543
1579
</ section >
1544
1580
@@ -1684,6 +1720,13 @@ <h2><a>DeliveryReport</a> Interface</h2>
1684
1720
related to an SMS message then the array will contain a single item
1685
1721
corresponding to the single recipient of the SMS message.
1686
1722
</ dd >
1723
+ < dt > readonly attribute Date[]? deliveryTimestamps</ dt >
1724
+ < dd > MUST return an array containing the delivery dates for each of the
1725
+ recipients to which this delivery report event relates. Each element in the
1726
+ array refers to the recipient in the same position of the
1727
+ < code > recipients</ code > array. It MUST return null if case of delivery
1728
+ failure (e.g. message expired)
1729
+ </ dd >
1687
1730
</ dl >
1688
1731
</ section >
1689
1732
@@ -1724,6 +1767,13 @@ <h2><a>DeliveryReportEvent</a> Interface</h2>
1724
1767
related to an SMS message then the array will contain a single item
1725
1768
corresponding to the single recipient of the SMS message.
1726
1769
</ dd >
1770
+ < dt > readonly attribute Date[]? deliveryTimestamps</ dt >
1771
+ < dd > MUST return an array containing the delivery dates for each of the
1772
+ recipients to which this delivery report event relates. Each element in the
1773
+ array refers to the recipient in the same position of the
1774
+ < code > recipients</ code > array. It MUST return null if case of delivery
1775
+ failure (e.g. message expired)
1776
+ </ dd >
1727
1777
</ dl >
1728
1778
</ section >
1729
1779
0 commit comments