Project

General

Profile

Feature #2432

ofono: FInd out how to receive Status / Delivery report

Added by pespin 8 days ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
-
Start date:
08/10/2017
Due date:
% Done:

0%

Spec Reference:

Description

According to doc, SMS delivery reports can be enabled using the following setting:

mdbus2 -s org.ofono $MODEM org.ofono.MessageManager.SetProperty UseDeliveryReports true

However, I couldn't find good documentation on how to actually manage or receive the delivery reports. Are they received as normal messages with "MessageAdded" signal or similar?

Maybe by keeping the messages in status=pending until the report is received? (see https://git.kernel.org/pub/scm/network/ofono/ofono.git/tree/doc/message-api.txt), but in this case, how to differentiate between "already sent and waiting for report" and "yet to be sent to the network" ?

Is this implemented in ofono drivers? For which of our modems?

After latest commits in openbsc implementing delivery report, I tried doing some tests with osmo-gsm-tester -s debug -t interactive but I don't seem to find out how I can check this.

This is the output I get from signals while using the "sms" command from interactive.py inside osmo-gsm-tester, and althrough UseDeliveryReports is enabled, I see nothing related to delivery reports:

# mdbus2 -s org.ofono -l -p -a
[SIGNAL] org.ofono.MessageManager.MessageAdded  /sierra_1  :1.10822
('/sierra_1/message_28BEB8DC32FA97C3499BB85B3E1C0EDAD56FD8C8', {'State': <'pending'>})
[SIGNAL] org.ofono.MessageManager.MessageAdded  /sierra_1  :1.10822
('/sierra_1/message_E6935E84DD80A97C93F40AF6EAD3C7D9A251210C', {'State': <'pending'>})
[SIGNAL] org.ofono.MessageManager.MessageAdded  /sierra_2  :1.10822
('/sierra_2/message_0687C48D6FC2FA443E77116F1CE20224EA65AADE', {'State': <'pending'>})
[SIGNAL] org.ofono.MessageManager.MessageAdded  /sierra_2  :1.10822
('/sierra_2/message_00F88A55A97AE519199293C11D38133AD3AC59FE', {'State': <'pending'>})
[SIGNAL] org.ofono.Message.PropertyChanged  /sierra_1/message_28BEB8DC32FA97C3499BB85B3E1C0EDAD56FD8C8  :1.10822
('State', <'sent'>)
[SIGNAL] org.ofono.MessageManager.MessageRemoved  /sierra_1  :1.10822
('/sierra_1/message_28BEB8DC32FA97C3499BB85B3E1C0EDAD56FD8C8',)
[SIGNAL] org.ofono.Message.PropertyChanged  /sierra_2/message_0687C48D6FC2FA443E77116F1CE20224EA65AADE  :1.10822
('State', <'sent'>)
[SIGNAL] org.ofono.MessageManager.MessageRemoved  /sierra_2  :1.10822
('/sierra_2/message_0687C48D6FC2FA443E77116F1CE20224EA65AADE',)
[SIGNAL] org.ofono.Message.PropertyChanged  /sierra_2/message_00F88A55A97AE519199293C11D38133AD3AC59FE  :1.10822
('State', <'sent'>)
[SIGNAL] org.ofono.MessageManager.MessageRemoved  /sierra_2  :1.10822
('/sierra_2/message_00F88A55A97AE519199293C11D38133AD3AC59FE',)
[SIGNAL] org.ofono.Message.PropertyChanged  /sierra_1/message_E6935E84DD80A97C93F40AF6EAD3C7D9A251210C  :1.10822
('State', <'sent'>)
[SIGNAL] org.ofono.MessageManager.MessageRemoved  /sierra_1  :1.10822
('/sierra_1/message_E6935E84DD80A97C93F40AF6EAD3C7D9A251210C',)
[SIGNAL] org.ofono.MessageManager.IncomingMessage  /sierra_1  :1.10822
('message nr. 1, from /sierra_1, to /sierra_1, from 26043, to 26043', {'LocalSentTime': <'2017-08-10T17:56:34+0200'>, 'SentTime': <'2017-08-10T15:56:34+0000'>, 'Sender': <'26043'>})
[SIGNAL] org.ofono.MessageManager.IncomingMessage  /sierra_2  :1.10822
('message nr. 4, from /sierra_2, to /sierra_2, from 26044, to 26044', {'LocalSentTime': <'2017-08-10T17:56:35+0200'>, 'SentTime': <'2017-08-10T15:56:35+0000'>, 'Sender': <'26044'>})
[SIGNAL] org.ofono.MessageManager.IncomingMessage  /sierra_1  :1.10822
('message nr. 3, from /sierra_2, to /sierra_1, from 26044, to 26043', {'LocalSentTime': <'2017-08-10T17:56:36+0200'>, 'SentTime': <'2017-08-10T15:56:36+0000'>, 'Sender': <'26044'>})
[SIGNAL] org.ofono.MessageManager.IncomingMessage  /sierra_2  :1.10822
('message nr. 2, from /sierra_1, to /sierra_2, from 26043, to 26044', {'LocalSentTime': <'2017-08-10T17:56:37+0200'>, 'SentTime': <'2017-08-10T15:56:37+0000'>, 'Sender': <'26043'>})

Also available in: Atom PDF