View Single Post
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#439
@crun ok I could seperate the phone number with dbus service org.ofono.MessageManager. Listening on signal IncomingMessage (service: org.ofono, path: /ril_0, interface: org.ofono.MessageManager). There you get a variant map [string, variant]. The second key is "Sender" where its variant holds the number.

I attach a deb which I used for listening on ImmediateMessage, IncomingMessage and MessageAdded. But for me only IncomingMessage got triggerd. It has some debug messages and in the end it prints to stdout the number. You can quit with x+enter.

EDIT: lol wrong slot, IncomingMessage got triggerd not Immediate, fixed it.
Attached Files
File Type: rpm smsreceive-0.0.2-1.armv7hl.rpm (16.7 KB, 29 views)

Last edited by Halftux; 2019-10-04 at 18:43. Reason: sorry IncomingMessage not Immediate
 

The Following User Says Thank You to Halftux For This Useful Post: