maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   No notification when new voicemail ? Here come the patch ! (https://talk.maemo.org/showthread.php?t=94498)

coderus 2015-01-28 20:58

Re: No notification when new voicemail ? Here come the patch !
 
Quote:

Originally Posted by Schturman (Post 1458558)
I did now another test..
I have 2 voice messages that I didn't listen yet. In previous post I wrote that when I pressed on notification, phone call to voice mail and I hang up. That mean 2 messages still here.
Now I call to myself and leaved new message (#3), but app not send me notification :(

Update: after listening all messages I leaved new one and in this condition it send new notification. But also when you remove notification by pull down -> clear notification (without call to voicemail) it not send new notification.
That mean we can see this notification only once, and if user remove this witbout listening messages he will not get new notifications if people start to leave them from this moment.

so, where is debug output?

coderus 2015-01-28 21:04

Re: No notification when new voicemail ? Here come the patch !
 
We can do not user removable notification, but we will have bigger problems when user exit daemon/kill daemon/usinstall application, it will produce forever unremovable application :)

Well, sources are published, feel free to improve application as you want or write your own.

Schturman 2015-01-28 21:14

Re: No notification when new voicemail ? Here come the patch !
 
Quote:

Originally Posted by coderus (Post 1458566)
so, where is debug output?

Notification removed by pull down (clear notification ) and leaved new voicemail message.
Code:

olla ~]$ voicemail-daemon [D] VoicemailWatcher::VoicemailWatcher:19 - Bus registered successfully! [D] VoicemailWatcher::VoicemailWatcher:26 - Available modems: ("/ril_0") [D] VoicemailWatcher::VoicemailWatcher:29 - Selecting modem: "/ril_0" [D] VoicemailWatcher::VoicemailWatcher:36 - Connecting to signals [D] VoicemailWatcher::VoicemailWatcher:41 - Object created successfully:  true [D] VoicemailWatcher::VoicemailWatcher:42 - Voicemail waiting:  true [D] VoicemailWatcher::VoicemailWatcher:43 - Voicemail count:  0 [D] VoicemailWatcher::VoicemailWatcher:44 - Voicemail number:  "+972544151000" [D] VoicemailWatcher::onVoicemailWaitingChanged:95 - onVoicemailWaitingChanged:  true

coderus 2015-01-28 21:18

Re: No notification when new voicemail ? Here come the patch !
 
You didn't listen old voicemessages. So no changes.

Schturman 2015-01-28 21:43

Re: No notification when new voicemail ? Here come the patch !
 
Quote:

Originally Posted by coderus (Post 1458569)
You didn't listen old voicemessages. So no changes.

Yep.. Already understand it from Zeta explanation..
But can you implement the first option that Zeta posted ?

Schturman 2015-01-29 20:18

Re: No notification when new voicemail ? Here come the patch !
 
Ok, Finally got what I want ! :D
I got some help from EmaNymton (Big thanks!) with python script.
Now I have LED, Sound, event & lockscreen notifications.
The notification NOT user removable, that mean you can't remove it by pulling screen down and choosing "Clear notifications". But by pressing on the notification it start call to your Voicemail.
It stop send notifications only when you listen and delete or save your voice mail messages.
It not send notifications when phone in call.
I uploaded it to Openrepos if someone one to use it :D
https://openrepos.net/content/schtur...e-mail-notifer

elastic 2015-01-29 20:43

Re: No notification when new voicemail ? Here come the patch !
 
Please report about the battery usage ....

Schturman 2015-01-29 20:58

Re: No notification when new voicemail ? Here come the patch !
 
Quote:

Originally Posted by elastic (Post 1458706)
Please report about the battery usage ....

Just try and decide for youself ;)
I'm two days with it and it fine for me...

Schturman 2015-01-29 21:59

Re: No notification when new voicemail ? Here come the patch !
 
It's funny I see 12 votes with 1 star on openrepos, but only 4 times app downloaded... Haaaaaaaaaa :D

coderus 2015-01-29 23:09

Re: No notification when new voicemail ? Here come the patch !
 
Quote:

Originally Posted by Schturman (Post 1458572)
Yep.. Already understand it from Zeta explanation..
But can you implement the first option that Zeta posted ?

Sure, check this version: https://dl.dropboxusercontent.com/u/...-1.armv7hl.rpm

Schturman 2015-01-30 00:30

Re: No notification when new voicemail ? Here come the patch !
 
By pressing on notification it just remove it, not call to voicemail like in previous version.
Code:

la ~]$ voicemail-daemon
[D] VoicemailWatcher::VoicemailWatcher:18 - Bus registered successfully!
[D] VoicemailWatcher::VoicemailWatcher:25 - Available modems: ("/ril_0")
[D] VoicemailWatcher::VoicemailWatcher:28 - Selecting modem: "/ril_0"
[D] VoicemailWatcher::VoicemailWatcher:37 - Connecting to signals
[D] VoicemailWatcher::VoicemailWatcher:42 - Object created successfully:  true
[D] VoicemailWatcher::VoicemailWatcher:43 - Voicemail waiting:  true
[D] VoicemailWatcher::VoicemailWatcher:44 - Voicemail count:  0
[D] VoicemailWatcher::VoicemailWatcher:45 - Voicemail number:  "+972544151000"
[D] VoicemailWatcher::onVoicemailWaitingChanged:129 - onVoicemailWaitingChanged:  true

[D] VoicemailWatcher::notificationClosed:118 - notificationClosed "New voicemail" 2121
2
[D] VoicemailWatcher::onVoicemailWaitingChanged:129 - onVoicemailWaitingChanged:  true


coderus 2015-01-30 00:33

Re: No notification when new voicemail ? Here come the patch !
 
okay, and what about notification, is it showed until all voicemessages read?

Schturman 2015-01-30 00:40

Re: No notification when new voicemail ? Here come the patch !
 
Quote:

Originally Posted by coderus (Post 1458767)
okay, and what about notification, is it showed until all voicemessages read?

No... When I click on notification, it just disapeared.

coderus 2015-01-30 00:43

Re: No notification when new voicemail ? Here come the patch !
 
Ah sure, wrong action used. This one is fixed: https://dl.dropboxusercontent.com/u/...-2.armv7hl.rpm

Schturman 2015-01-30 00:59

Re: No notification when new voicemail ? Here come the patch !
 
Quote:

Originally Posted by coderus (Post 1458769)
Ah sure, wrong action used. This one is fixed: https://dl.dropboxusercontent.com/u/...-2.armv7hl.rpm

Now when I press on the notification it remove notification and start call to voicemail. Like yesterday, I didn't listen to messages and just hang up. App not send notifications any more...

Sorry, I need go to sleep, after 3.5 hours I have to be at work.
If you will post new versions, I will try them later today.
Thanks

coderus 2015-01-30 01:13

Re: No notification when new voicemail ? Here come the patch !
 
where is log? it's not funny to ask it every time.

Schturman 2015-01-30 01:17

Re: No notification when new voicemail ? Here come the patch !
 
Quote:

Originally Posted by coderus (Post 1458772)
where is log? it's not funny to ask it every time.

Sorry here. I'm just tired ..
Code:

Jolla ~]$ voicemail-daemon [D] VoicemailWatcher::VoicemailWatcher:18 - Bus registered successfully! [D] VoicemailWatcher::VoicemailWatcher:25 - Available modems: ("/ril_0") [D] VoicemailWatcher::VoicemailWatcher:28 - Selecting modem: "/ril_0" [D] VoicemailWatcher::VoicemailWatcher:37 - Connecting to signals [D] VoicemailWatcher::VoicemailWatcher:42 - Object created successfully:  true [D] VoicemailWatcher::VoicemailWatcher:43 - Voicemail waiting:  true [D] VoicemailWatcher::VoicemailWatcher:44 - Voicemail count:  0 [D] VoicemailWatcher::VoicemailWatcher:45 - Voicemail number:  "+972544151000" [D] VoicemailWatcher::onVoicemailWaitingChanged:129 - onVoicemailWaitingChanged:  true  [D] VoicemailWatcher::onVoicemailWaitingChanged:174 - New notification 2134 [D] VoicemailWatcher::notificationCallback:78 - notificationCallback [D] VoicemailWatcher::notificationClicked:110 - notificationClicked "New voicemail" [D] VoicemailWatcher::notificationClosed:118 - notificationClosed "New voicemail" 2134 2 [D] VoicemailWatcher::onVoicemailWaitingChanged:129 - onVoicemailWaitingChanged:  true

coderus 2015-01-30 02:11

Re: No notification when new voicemail ? Here come the patch !
 
Okay, now i understand how it works. https://dl.dropboxusercontent.com/u/...-1.armv7hl.rpm

Schturman 2015-01-30 06:03

Re: No notification when new voicemail ? Here come the patch !
 
Quote:

Originally Posted by coderus (Post 1458775)
Okay, now i understand how it works. https://dl.dropboxusercontent.com/u/...-1.armv7hl.rpm

Yes, yes, yes !!! Finally it work perfectly like should be, for me at least :D
Thank you very much!
Please upload it to openrepos, and I will remove my :)

coderus 2015-01-30 07:23

Re: No notification when new voicemail ? Here come the patch !
 
Quote:

Originally Posted by Schturman (Post 1458790)
Yes, yes, yes !!! Finally it work perfectly like should be, for me at least :D
Thank you very much!
Please upload it to openrepos, and I will remove my :)

Can i grab your icon for my app also?

Schturman 2015-01-30 07:31

Re: No notification when new voicemail ? Here come the patch !
 
2 Attachment(s)
Quote:

Originally Posted by coderus (Post 1458795)
Can i grab your icon for my app also?

Sure you can :D

P.S. Oops forgot to add images ..

coderus 2015-01-30 10:35

Re: No notification when new voicemail ? Here come the patch !
 
Voicemail notifications for SailfishOS published in OpenRepos: https://openrepos.net/content/coderu...-notifications

pichlo 2015-01-30 13:54

Re: No notification when new voicemail ? Here come the patch !
 
Hat off to you two! I have been watching this synergy with great interest. The coder and the tester ping-ponging feedback across 2000(?) km and eventually delivering the product in just three days, amazing!

late88 2015-01-30 14:35

Re: No notification when new voicemail ? Here come the patch !
 
Quote:

Originally Posted by pichlo (Post 1458876)
Hat off to you two! I have been watching this synergy with great interest. The coder and the tester ping-ponging feedback across 2000(?) km and eventually delivering the product in just three days, amazing!

That's the community spirit right there, well done guys!
Big thanks to both.

abyzthomas 2015-01-30 16:17

Re: No notification when new voicemail ? Here come the patch !
 
Great work guys. I am so happy we have guys like you in the community.

Happy Friday!!!

mousse04 2015-02-05 19:27

Re: No notification when new voicemail ? Here come the patch !
 
Hi Zeta,

so as you know it is not working with Orange in France, as they send me text message.

On jollafr.org, you spoke about dbus-send or some other command.

Could you give them to me and also the process (starting the commande before having a voicemail etc ...)?

Thanks

Zeta 2015-02-05 20:00

Re: No notification when new voicemail ? Here come the patch !
 
Quote:

Originally Posted by mousse04 (Post 1459715)
Hi Zeta,

so as you know it is not working with Orange in France, as they send me text message.

On jollafr.org, you spoke about dbus-send or some other command.

Could you give them to me and also the process (starting the commande before having a voicemail etc ...)?

Thanks

Salut Mousse,

I was refering to this : https://together.jolla.com/question/...#post-id-76513

You can check at any time the values of the ofono voicemail system with that command:

Code:

[nemo@Jolla ~]$ dbus-send --system --type=method_call --print-reply --dest=org.ofono /ril_0  org.ofono.MessageWaiting.GetProperties
method return sender=:1.14 -> dest=:1.3016 reply_serial=2
  array [
      dict entry(
        string "VoicemailWaiting"
        variant            boolean true
      )
      dict entry(
        string "VoicemailMessageCount"
        variant            byte 0
      )
      dict entry(
        string "VoicemailMailboxNumber"
        variant            string "660"
      )
  ]

Here, the value of the boolean "VoicemailWaiting" is what we use to show the notification.
The "count" value is always 0 for all people I know who tried, but maybe some operators are putting here the real number of messages in the voicemail. The value "0" simply means "not known", and only the boolean must be checked.

If you have the good value here (true if you have unread voicemail, false if you read them all), you can also check with dbus monitor that the changes are correctly notified:
Code:

[nemo@Jolla ~]$ dbus-monitor --system "type='signal',interface='org.ofono.MessageWaiting'"

signal sender=:1.14 -> dest=(null destination) serial=15192 path=/ril_0; interface=org.ofono.MessageWaiting; member=PropertyChanged
  string "VoicemailWaiting"
  variant      boolean false

Here the trace shows that messages where read so there is no voicemails left (going from "true" to now "false").

If you need more help, let me know !

mousse04 2015-02-05 20:27

Re: No notification when new voicemail ? Here come the patch !
 
Merci Zeta :).

unfortunately boolean variable never goes to true, even with 2 voicemails :(

bluefoot 2015-02-06 06:51

Re: No notification when new voicemail ? Here come the patch !
 
Just wanted to express my thanks again for the work of those in this thread. It feels so good to finally have this.

Have Jolla been in contact yet about rolling this into official code ... or still silence?

smoku 2015-02-06 08:07

Re: No notification when new voicemail ? Here come the patch !
 
Quote:

Originally Posted by Zeta (Post 1457428)
Update:
Patch is uploaded on openrepos:
https://openrepos.net/content/zeta/p...l-notification

This link got broken.

pichlo 2015-02-06 12:01

Re: No notification when new voicemail ? Here come the patch !
 
Quote:

Originally Posted by smoku (Post 1459780)
This link got broken.

Here you go. You can thank the TMO website for corrupting URLs.

Zeta 2015-02-22 18:28

Re: No notification when new voicemail ? Here come the patch !
 
Quote:

Originally Posted by pichlo (Post 1459807)
Here you go. You can thank the TMO website for corrupting URLs.

Fixed the first post.

coderus 2015-02-22 19:56

Re: No notification when new voicemail ? Here come the patch !
 
Users reported https://openrepos.net/content/coderu...-notifications not working on u11, can you confirm?

coderus 2015-02-22 23:33

Re: No notification when new voicemail ? Here come the patch !
 
Vocemail notifications updated: https://openrepos.net/content/coderu...-notifications

yawuji 2015-04-27 14:28

Re: No notification when new voicemail ? Here come the patch !
 
Quote:

Originally Posted by coderus (Post 1461728)

Thanks @coderus and @zeta,

Have installed this patch and voicemail notification (O2) is showing up now.

I am a new Jolla/Sailfish user and it's sad that some of the basic functionalities like this (and call history) are missing from this other wise great phone/os. It's simply painful to search for the fixes and apply them. I am hoping the next OS version release will contain all the fixes.

romu 2015-05-01 08:44

Re: No notification when new voicemail ? Here come the patch !
 
Hi everybody,
Yesterday, something stranged occured on the Jolla. I've deleted a voice message just before the notification raised on the Jolla.

No my voicemail box is empty (checked few times), but the notification on the Jolla is still there even after a phone reboot.

How can I remove it? Thanks.

Jordi 2015-05-01 10:49

Re: No notification when new voicemail ? Here come the patch !
 
Wait for a new voice message?

pichlo 2015-05-01 11:00

Re: No notification when new voicemail ? Here come the patch !
 
Quote:

Originally Posted by Jordi (Post 1469096)
Wait for a new voice message?

Indeed. Or, if it bothers you too much, call yourself and leave yourself a voicemail.

romu 2015-05-02 09:28

Re: No notification when new voicemail ? Here come the patch !
 
Thanks guys, it worked.


All times are GMT. The time now is 00:30.

vBulletin® Version 3.8.8