![]() |
Re: No notification when new voicemail ? Here come the patch !
Sorry, i have no voicemails option on my operator, i can't test it. But if you give me information about dbus names to fetch status i can make proper daemon.
|
Re: No notification when new voicemail ? Here come the patch !
Quote:
You can use Code:
dbus-send --system --type=method_call --print-reply --dest=org.ofono /ril_0 org.ofono.MessageWaiting.GetPropertiesCode:
/usr/lib/qt5/bin/qdbus --system org.ofono /ril_0 org.ofono.MessageWaiting.GetProperties |
Re: No notification when new voicemail ? Here come the patch !
I can build fully working application without trying it, don't worry. This info is enough, thanks. Will return here after building application.
|
Re: No notification when new voicemail ? Here come the patch !
Schturman,
Thanks for the code. I said I wouldn't work on this today, but you made me think a lot about it, and I got back to it... ;) I took my work back were I left it before switching to QML. I was doing a trigger in phonebot (which I had running, so only a question of easy way of doing it for me at the time). Making some changes in the notification plugin to add the category, I got (almost) the same results as you, but using only signals, no polling. Here is the core of the Qt C++ part that does it, using the qofono object of nemo (who does all the work as in the QML patch) : Code:
// There may be some includes missing, I cleaned this list manually when pasting it here...About the way to launch something from a notifications, it goes through DBus, using the following arguments to the notification item: Code:
remoteDBusCallServiceName: "org.nemomobile.example"I have to sniff around DBus to retrieve the DBus service and method that launch the voice call ui, but here is a direction to search (found in /usr/share/lipstick-jolla-home-qt5/lockscreen/OngoingCall.qml) : Code:
DBusInterface { |
Re: No notification when new voicemail ? Here come the patch !
Quote:
Code:
signal sender=:1.14 -> dest=(null destination) serial=15125 path=/ril_0; interface=org.ofono.MessageWaiting; member=PropertyChangedThis is hidden inside QOfono when you use it from C++ or QML, but it can be directly connected to from python or even C++ if you want to do it with DBus. |
Re: No notification when new voicemail ? Here come the patch !
Okay, install and test this package: https://dl.dropboxusercontent.com/u/...-1.armv7hl.rpm
After starting icon from launcher should appear notificatoin about launcing watcher You can enable autostart, start or exit watcher Check if notifications about new voicemails appearing :) |
Re: No notification when new voicemail ? Here come the patch !
Coderus, "force start" or start from cover not work.
|
Re: No notification when new voicemail ? Here come the patch !
Zeta, like I said I'm not programmer and still not understand from what you wrote hot to implement it to my python script :D
Can you explain it ? Or write example with my script ? Also we can use direct link to call to voicemail by pressing on the notification (if we will succeed to implement it) : Code:
gdbus call -e -d com.jolla.voicecall.ui -o / -m com.jolla.voicecall.ui.dial '+97215154003200' |
Re: No notification when new voicemail ? Here come the patch !
Quote:
|
Re: No notification when new voicemail ? Here come the patch !
Sources here: https://github.com/CODeRUS/voicemail-notifications
feel free to do pull requests |
| All times are GMT. The time now is 18:26. |
vBulletin® Version 3.8.8