[telephony] SMS send error checking non existent

Bug #1089431 reported by Sergio Schvezov
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
messaging-app
Fix Released
High
Tiago Salem Herrmann
telepathy-ofono
Fix Released
Undecided
Unassigned
messaging-app (Ubuntu)
Fix Released
High
Tiago Salem Herrmann
Trusty
Fix Released
High
Tiago Salem Herrmann
telepathy-ofono (Ubuntu)
Fix Released
Undecided
Unassigned
Trusty
Fix Released
Undecided
Unassigned

Bug Description

SUT: manhattan build 143 on maguro

Steps to reproduce:
- Use a valid working SIM but with no credit
- Open telephony-app
- Go to conversations pane
- Send message to valid number

Expected result:
- Indication of SMS failing to send

Actual result:
- SMS shows as sent, but since there is no credit on the phone it doesn't reach destination

Notes:
I guess this falls into the error checking category

Changed in manhattan:
importance: Undecided → High
Changed in marumbi:
importance: Undecided → High
assignee: nobody → Gustavo Pichorim Boiko (boiko)
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Mind pasting the output of ofonod from your /var/log/syslog?

Just to see if RIL is actually reporting the error correctly.

Changed in manhattan:
milestone: maintenance-update → feature-freeze
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

I'm assuming the 'dispatch' call is when it tries to send it and it retries a couple of times until it stops.

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Yeah, the most important is:
Dec 12 13:33:16 localhost ofonod[364]: gril/gril.c:dispatch() RIL Reply: serial-no: 6 errno: GENERIC_FAILURE
Dec 12 13:33:16 localhost ofonod[364]: gril/gril.c:handle_response() comparing req->id: 6 to message->serial_no: 6

So it's indeed failing for RIL, we just need to make sure now that we're pushing this forward to the app via the dbus api from ofono.

Revision history for this message
Tony Espy (awe) wrote :

Re-assigned to myself first, as the the error doesn't propagate to the upper ofono SMS layer yet.

Changed in manhattan:
assignee: Gustavo Pichorim Boiko (boiko) → Tony Espy (awe)
Bill Filler (bfiller)
Changed in manhattan:
milestone: feature-freeze → mwc-update
status: New → Confirmed
Bill Filler (bfiller)
Changed in manhattan:
milestone: update-1 → none
affects: marumbi → phone-app
affects: phone-app → marumbi
affects: marumbi → phone-app
no longer affects: manhattan
information type: Private → Public
Changed in phone-app:
milestone: none → ubuntu-13.05
Bill Filler (bfiller)
Changed in phone-app:
assignee: Gustavo Pichorim Boiko (boiko) → Tiago Salem Herrmann (tiagosh)
status: New → Confirmed
Revision history for this message
Gustavo Pichorim Boiko (boiko) wrote :

Reassigning back to Tony as this needs to be solved at the ofono level first.

Changed in phone-app:
assignee: Tiago Salem Herrmann (tiagosh) → Tony Espy (awe)
Changed in phone-app:
milestone: ubuntu-13.05 → ubuntu-13.06
Ayrton Santana (ayrton)
summary: - [telephony] SMS send error checking non existent
+ [conversations] SMS send error checking non existent
summary: - [conversations] SMS send error checking non existent
+ [telephony] SMS send error checking non existent
Tony Espy (awe)
Changed in phone-app:
assignee: Tony Espy (awe) → Simon Busch (morphis)
Simon Fels (morphis)
Changed in phone-app:
status: Confirmed → In Progress
Revision history for this message
Tony Espy (awe) wrote :

@Simon

One other SMS feature we currently don't support is receipt of UNSOL_RESPONSE_NEW_SMS_STATUS_REPORT. Perhaps you could investigate this while working on this bug?

Revision history for this message
Simon Fels (morphis) wrote :

I have some first implementation for handling the UNSOL_RESPONSE_NEW_SMS_STATUS_REPORT event at https://code.launchpad.net/~morphis/phablet-extras/ofono-lp1089431

To test it we either need a history plugin or use the example/history.c which is compiled into the source with --enable-maintainer-mode

The implementation needs some further testing.

Revision history for this message
Simon Fels (morphis) wrote :

I looked through the code related to the original issue of this bug and it seems since the version the bug was reported against the code has changed a bit which might have fixed the bug already.

I am still on the way getting a uncharged SIM card to verify the bug with the latest version.

Revision history for this message
Simon Fels (morphis) wrote :

After some further analysis and some brute forcing with the setting the error code of the RIL message manually to RIL_E_GENERIC_FAILURE ofono is still doing fine in sending out correct signals to indicate that sending failed:

ofonod[8809]: src/sms.c:tx_finished() tx_finished 0x187ec38
ofonod[8809]: src/sms.c:tx_finished() Max retries reached, giving up
ofonod[8809]: src/sms.c:sms_tx_queue_remove_entry() 0x187ec38
ofonod[8809]: Sending SMS 0B727DD2A7292A2B3FD37B2FB305A7DE52BD0099 failed
ofonod[8809]: Failure Time: 2013-06-24T17:17:51+0000

[SIGNAL] org.ofono.MessageManager.MessageAdded /ril_0 :1.55
('/ril_0/message_A4EBFF2B3BCA4273B71483290740B4A5A605CE5E', {'State': <'pending'>})
[SIGNAL] org.ofono.NetworkRegistration.PropertyChanged /ril_0 :1.55
('Strength', <byte 0x1d>)
[SIGNAL] org.ofono.Message.PropertyChanged /ril_0/message_A4EBFF2B3BCA4273B71483290740B4A5A605CE5E :1.55
('State', <'failed'>)
[SIGNAL] org.ofono.MessageManager.MessageRemoved /ril_0 :1.55
('/ril_0/message_A4EBFF2B3BCA4273B71483290740B4A5A605CE5E',)

Changed in phone-app:
assignee: Simon Busch (morphis) → Tiago Salem Herrmann (tiagosh)
affects: phone-app → messaging-app
Changed in messaging-app:
milestone: ubuntu-13.06 → none
Bill Filler (bfiller)
Changed in messaging-app (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Bill Filler (bfiller)
Changed in messaging-app (Ubuntu):
assignee: nobody → Tiago Salem Herrmann (tiagosh)
Bill Filler (bfiller)
Changed in messaging-app:
status: In Progress → Fix Released
Changed in telepathy-ofono:
status: New → Fix Released
Changed in messaging-app (Ubuntu Trusty):
status: Confirmed → Fix Released
Changed in telepathy-ofono (Ubuntu Trusty):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.