Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit a1a42e2

Browse files
author
Eduardo Fullea
committed
Merge pull request #74 from efullea/deliverytime
Adding delivery time for messages #70
2 parents f38af54 + 4310f89 commit a1a42e2

File tree

1 file changed

+74
-24
lines changed

1 file changed

+74
-24
lines changed

index.html

Lines changed: 74 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,10 @@ <h3>Steps</h3>
700700
<li>Set the <code>deliveryStatus</code> parameter of the
701701
<code>SmsMessage</code> to 'success' or 'error' depending on the reported
702702
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]].
703707
<li><a>Queue a task</a> to <a>fire an event</a> named
704708
<a>deliverysuccess</a> or <a>deliveryfailure</a> respectively if the
705709
delivery was successfull or not, with
@@ -708,8 +712,10 @@ <h3>Steps</h3>
708712
<code>SmsMessage</code> to which this confirmation is related,
709713
<li>the <code>serviceID</code> attribute set to the identifier of the
710714
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.
713719
</ol>
714720
<li><a>Queue a task</a> to fire a system message of type
715721
<code><a>DeliveryReport</a></code>named <a>deliverysuccess</a> or
@@ -720,8 +726,10 @@ <h3>Steps</h3>
720726
<code>SmsMessage</code> to which this confirmation is related,
721727
<li>the <code>serviceID</code> attribute set to the identifier of the
722728
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.
725733
</ol>
726734
</ol>
727735

@@ -1013,7 +1021,7 @@ <h3>Steps</h3>
10131021
parameter.
10141022
<li>Set the <code>state</code> of the <code>MmsMessage</code> to
10151023
'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
10171025
<code>MmsMessage</code> for each unique recipient included in the
10181026
<code>to</code>, <code>cc</code> and <code>bcc</code> parameters (i.e. a
10191027
single item if the same address has multiple ocurrences across these
@@ -1035,7 +1043,7 @@ <h3>Steps</h3>
10351043
<ol>
10361044
<li>If a delivery report had been requested set the
10371045
<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
10391047
<code>MmsMessage</code> to 'error'.
10401048
<li>call <var>resolver</var>'s <code>reject(value)</code>method with
10411049
<var>error</var> as <code>value</code> argument.
@@ -1152,8 +1160,8 @@ <h3>Steps</h3>
11521160
</ol>
11531161
<li>Set the <code>state</code> of the <code>MmsMessage</code> to
11541162
'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
11571165
'To', 'Cc' and 'Bcc' fields (i.e. a single item if the same address
11581166
has multiple ocurrences across these parameters), with the
11591167
<code>recipient</code> attribute set to this recipient's address and
@@ -1226,15 +1234,23 @@ <h3>Steps</h3>
12261234
<p>Upon a delivery report of a previously sent MMS message being received, the
12271235
<a>user agent</a> MUST
12281236
<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
12301238
attribute of the <code>MmsMessage</code> whose <code>recipient</code>
12311239
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,
12331241
<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.
12381254
</ol>
12391255
<li><a>Queue a task</a> to <a>fire an event</a> named
12401256
<a>deliverysuccess</a> or <a>deliveryfailure</a> respectively if the
@@ -1245,7 +1261,11 @@ <h3>Steps</h3>
12451261
<li>the <code>serviceID</code> attribute set to the identifier of the
12461262
service used to send such message, and
12471263
<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.
12491269
</ol>
12501270
<li><a>Queue a task</a> to fire a system message of type
12511271
<code><a>DeliveryReport</a></code>named <a>deliverysuccess</a> or
@@ -1255,9 +1275,13 @@ <h3>Steps</h3>
12551275
<li>the <code>messageID</code> attribute set to the identifier of the
12561276
<code>MmsMessage</code> to which this confirmation is related,
12571277
<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
12591279
<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.
12611285
</ol>
12621286
</ol>
12631287

@@ -1393,7 +1417,13 @@ <h2><a>SmsMessage</a> Interface</h2>
13931417
<dd>MUST return the delivery status of the SMS message.
13941418
</dd>
13951419

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>
13971427
<dd>MUST return the SMS message class, according to the value indicated in
13981428
the TP-Data-Coding-Scheme (TP-DCS) field of the SMS.</dd>
13991429

@@ -1465,9 +1495,10 @@ <h2><a>MmsMessage</a> Interface</h2>
14651495
<dt>readonly attribute MmsState state</dt>
14661496
<dd>MUST return the status of the MMS message.</dd>
14671497

1468-
<dt>readonly attribute MmsDeliveryStatus[] deliveryStatusArray</dt>
1498+
<dt>readonly attribute MmsDeliveryInfo[] deliveryInfo</dt>
14691499
<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>
14711502

14721503
</dl>
14731504
</section>
@@ -1535,18 +1566,23 @@ <h2><a>MmsAttachment</a> Dictionary</h2>
15351566
</dl>
15361567
</section>
15371568

1538-
<!------------------------ Dictionary MmsDeliveryStatus -------------------->
1569+
<!------------------------ Dictionary MmsDeliveryInfo -------------------->
15391570
<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">
15421573
<dt>DeliveryStatus deliveryStatus</dt>
15431574
<dd>
1544-
The delivery status of the MMS message
1575+
The delivery status of the MMS message to a specific recipient.
15451576
</dd>
15461577
<dt>DOMString recipient</dt>
15471578
<dd>
15481579
The recipient of the MMS to which the delivery status is related.
15491580
</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>
15501586
</dl>
15511587
</section>
15521588

@@ -1692,6 +1728,13 @@ <h2><a>DeliveryReport</a> Interface</h2>
16921728
related to an SMS message then the array will contain a single item
16931729
corresponding to the single recipient of the SMS message.
16941730
</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>
16951738
</dl>
16961739
</section>
16971740

@@ -1732,6 +1775,13 @@ <h2><a>DeliveryReportEvent</a> Interface</h2>
17321775
related to an SMS message then the array will contain a single item
17331776
corresponding to the single recipient of the SMS message.
17341777
</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>
17351785
</dl>
17361786
</section>
17371787

0 commit comments

Comments
 (0)