maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Personal Ringtones (https://talk.maemo.org/showthread.php?t=95875)

coderus 2015-08-25 18:05

Personal Ringtones
 
Github: https://github.com/CODeRUS/personal-ringtones
Openrepos: https://openrepos.net/content/coderu...onal-ringtones
Translation: https://www.transifex.com/coderus/personal-ringtones

Personal Ringtones selector application for SailfishOS. Application installs voicecall manager plugin overriding system ngf one.

You should add only numbers in international format. Application have no ability to resolve local numbers in your phonebook. Remember to delete previous added number and add new after modifying your phonebook, application is not watching for your contacts changes.

wormdrummer 2015-08-27 04:49

Re: [WIP, PoC] Personal Ringtones
 
Sweet! That's awesome!

coderus 2015-08-27 20:17

Re: [v0.2.0] Personal Ringtones
 
v0.2.0 released

Greendts 2015-08-28 10:44

Re: [v0.2.0] Personal Ringtones
 
Well done Coderus, works flawlessly. Your skills make Jolla better to use with everything you do...

coderus 2015-08-28 14:08

Re: [v0.2.0] Personal Ringtones
 
Updated to v0.2.1. Fixed removing added contacts.

late88 2015-08-28 15:37

Re: [v0.2.1] Personal Ringtones
 
Somehow doesn't work for me. I set the ringtone per contact but the default ringtone is played every time. Trying to figure out what's wrong.

coderus 2015-08-28 15:50

Re: [v0.2.1] Personal Ringtones
 
check systemctl --user status personalringtones and also start personalringtones in terminal and check log while someone added to list ringing you.

late88 2015-08-29 08:56

Re: [v0.2.1] Personal Ringtones
 
---
| SailfishOS 1.1.7.27 (Björnträsket) (armv7hl)
'---
[nemo@Jolla ~]$ systemctl --user status personalringtones
personalringtones.service - PersonalRingtones
Loaded: loaded (/usr/lib/systemd/user/personalringtones.
service; disabled)
Active: active (running) since pe 2015-08-28 18:33:04 EE
ST; 17h ago
Main PID: 21990 (invoker)
CGroup: /user.slice/user-100000.slice/user@100000.servic
e/personalringtones.service
└─21990 /usr/bin/invoker -s --type=qt5 /usr/b...

[nemo@Jolla ~]$ personalringtones
[W] QDBusDefaultConnection::QDBusDefaultConnection:106 7 - Q
DBusConnection: session D-Bus connection created before QCo
reApplication. Application may misbehave.
[D] CallInterceptor::init:231 - Telepathy client registered

[D] CallInterceptor::init:238 - DBus service error!
[D] CallInterceptor::init:239 - DBus object registered
[W] Tp::Debug::invokeDebugCallback:149 - tp-qt 0.9.4 WARN:
Channel::targetId() used, but the channel is not ready
[D] InterceptClient::observeChannels:192 - ""
[D] IncomingCall::IncomingCall:76 - Incoming operation
[D] IncomingChannel::channelReady:41 - "0400XXXXXX"
[D] IncomingCall::finish:173 - Operation complete

coderus 2015-08-29 09:49

Re: [v0.2.1] Personal Ringtones
 
You should have number in phonebook in exactly same format as recognized by application (international). It have no ability to resolve local format numbers.

late88 2015-08-30 09:53

Re: [v0.2.1] Personal Ringtones
 
Quote:

Originally Posted by coderus (Post 1480380)
You should have number in phonebook in exactly same format as recognized by application (international). It have no ability to resolve local format numbers.

I have the contact stored as international format. I don't know why the application shows otherwise.

coderus 2015-08-30 11:45

Re: [v0.2.1] Personal Ringtones
 
Log shows value received from telepathy channel.

okourkoulos 2015-09-03 11:38

Re: [v0.2.1] Personal Ringtones
 
Seem not to be able to Update from 0.2.0 to 0.2.1!
All uninstall efforts in any possible way failed to lead to an update to next version.
pkcon refresh sends me: "error authenticating, ssu enabled?"
pkcon update show no update available.
What am I doing wrong?

coderus 2015-09-03 14:00

Re: [v0.2.1] Personal Ringtones
 
show output of:
Code:

ssu re
ssu domain
zypper ref


okourkoulos 2015-09-03 20:09

Re: [v0.2.1] Personal Ringtones
 
I get:

1.1.7.28
sales

bash: zypper: command not found

coderus 2015-09-03 20:13

Re: [v0.2.1] Personal Ringtones
 
Code:

devel-su
pkcon install zypper
zypper ref


okourkoulos 2015-09-03 20:33

Re: [v0.2.1] Personal Ringtones
 
oops!
Now I get a pop-up saying critical problem with store!

output from terrminal says:
authentication required for "https://store-repository.jolla.com/releases/1.1.7.28/jolla-hw/adaptation-android-common/armv7hl/?credentials=store"
user name: okourkoulos


Now, cannot unapply developer mode!

OK, now I worry!

coderus 2015-09-03 21:21

Re: [v0.2.1] Personal Ringtones
 
well, try to remove jolla account and add it again

okourkoulos 2015-09-03 22:02

Re: [v0.2.1] Personal Ringtones
 
OK
Done that. Now I can unable and reenable Dev mode, but same output again from zypper.

coderus 2015-09-03 22:08

Re: [v0.2.1] Personal Ringtones
 
check if your jolla store works, according to this output it shouldnt.

okourkoulos 2015-09-03 22:13

Re: [v0.2.1] Personal Ringtones
 
Actually it does!
Uninstalled and Installed an app just to make sure.
Would the fact that my username is my e-mail account make any problem? I recently read something about this.
Should I use some other account name for Jolla?

coderus 2015-09-04 00:01

Re: [v0.2.1] Personal Ringtones
 
i don't know more, try searching/asking in tjc

coderus 2015-09-06 17:40

Re: [v0.3.0] Personal Ringtones
 
v0.3.0 released with always silenced and always with sound numbers lists

okourkoulos 2015-09-07 06:12

Re: [v0.3.0] Personal Ringtones
 
Made it, updated to v0.3.0, but still cannot remove some old wrong inputs.

Greendts 2015-10-30 04:34

Re: [v0.3.0] Personal Ringtones
 
coderus how do I purge my phone of this app, it was not playing correct tones according to what the contact had assigned. I did pkcon remove, but phone still plays tone that was assigned to one contact as the default tone.
Thanks in advance

Edit, fixed after I swapped ambiences from one to another

Artemys 2016-02-07 10:42

Re: [v0.3.0] Personal Ringtones
 
dear Coderus! I really miss the opportunity from Jolla to make the vibration feedback independent from sounds and ambiences. why isn't it possible to set it i.e. for call groups, or to make an ambience that only vibrates?
is it possible to integrate or is there any patch for jolla to make this work?
thanks anyway!

Schturman 2016-02-07 16:03

Re: [v0.3.1] Personal Ringtones
 
Good app, but it can't detect numbers without international prefix :(

coderus 2016-02-07 16:13

Re: [v0.3.1] Personal Ringtones
 
yes it says so in description.

Schturman 2016-02-07 17:31

Re: [v0.3.1] Personal Ringtones
 
Quote:

Originally Posted by coderus (Post 1498076)
yes it says so in description.

Yes, I know.. I mean the problem can coming from your operator, even if all your contacts in the telephone with international prefixes like in my case. For some reasons when someone call to me, phone will show me the name of my contact without problem, but in the call history list you will see contact name and phone without prefix... Why I don't know...

coderus 2016-02-07 17:47

Re: [v0.3.1] Personal Ringtones
 
because call history resolves name using it's own ways. read description and get proper international numbers from application log.

Schturman 2016-02-07 18:08

Re: [v0.3.1] Personal Ringtones
 
Quote:

Originally Posted by coderus (Post 1498081)
because call history resolves name using it's own ways. read description and get proper international numbers from application log.

Really ? I know what the international format, and like I said I always use it for all my contacts... For example: +972546669666
+972 = country code
54 = operator prefix (locally people call 054 + phone number = 0546669666)
6669666 = phone number
Here is a log:
Code:

[nemo@Jolla ~]$ personalringtones
[D] ProfileClient::ProfileClient:44 - Detected "2.0.1.7" OS version
[D] ProfileClient::ProfileClient:45 - Using "general" as default ringing profile
[D] ProfileClient::ProfileClient:46 - Using "silent" as default silence profile
[W] QDBusDefaultConnection::QDBusDefaultConnection:1067 - QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.

(process:15534): GLib-WARNING **: (gerror.c:390):g_error_new_valist: runtime check failed: (domain != 0)

(process:15534): GLib-WARNING **: (gerror.c:390):g_error_new_valist: runtime check failed: (domain != 0)

(process:15534): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: dconf key must not end with a slash
[D] CallInterceptor::init:252 - DBus service error!
[nemo@Jolla ~]$


coderus 2016-02-07 18:32

Re: [v0.3.1] Personal Ringtones
 
update to 0.3.1 and do systemctl --user stop personalringtones before running in terminal, because it already running as service.

Schturman 2016-02-07 18:58

Re: [v0.3.1] Personal Ringtones
 
2 Attachment(s)
Quote:

Originally Posted by coderus (Post 1498086)
update to 0.3.1 and do systemctl --user stop personalringtones before running in terminal, because it already running as service.

Thanks. Look output now... Like I said it coming from operator (number without international format):
Code:

[nemo@Jolla ~]$ systemctl --user stop personalringtones
[nemo@Jolla ~]$ personalringtones
[D] ProfileClient::ProfileClient:44 - Detected "2.0.1.7" OS version
[D] ProfileClient::ProfileClient:45 - Using "general" as default ringing profile
[D] ProfileClient::ProfileClient:46 - Using "silent" as default silence profile

(process:13216): GLib-WARNING **: (gerror.c:390):g_error_new_valist: runtime check failed: (domain != 0)

(process:13216): GLib-WARNING **: (gerror.c:390):g_error_new_valist: runtime check failed: (domain != 0)

(process:13216): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: dconf key must not end with a slash
[D] CallInterceptor::init:259 - DBus service registered
[D] CallInterceptor::init:262 - DBus object registered
[D] CallInterceptor::init:275 - Telepathy client registered
[W] CallInterceptor::init:289 - "No modems available! Waiting for availableChanged"
[D] CallInterceptor::initVoiceCallManager:312 - "/ril_0"
[D] CallInterceptor::onVoiceCallAdded:326 - "/ril_0/voicecall01"
[D] CallInterceptor::processOfonoState:337 - "incoming"
[D] IncomingCall::IncomingCall:104 - Incoming operation
[D] IncomingChannel::channelReady:44 - Incoming call: "0544*****4"
[D] IncomingChannel::channelReady:45 - Current profile: "general"
[D] IncomingChannel::channelReady:68 - Settings default ringtone
[D] IncomingCall::finish:201 - Operation complete
[D] CallInterceptor::processOfonoState:337 - "disconnected"
[D] CallInterceptor::processOfonoState:341 - Call action for: "0544*****4"
[D] CallInterceptor::onVoiceCallAdded:326 - "/ril_0/voicecall01"

And see screenshots from your app and from contacts app:

coderus 2016-02-07 19:13

Re: [v0.3.1] Personal Ringtones
 
so it will work only with 0544*****4 number added to application, not any other. what a problem to do that?

Schturman 2016-02-07 19:46

Re: [v0.3.1] Personal Ringtones
 
Quote:

Originally Posted by coderus (Post 1498091)
so it will work only with 0544*****4 number added to application, not any other. what a problem to do that?

But it's not international format :confused: this is for local call...
Now I changed number from international format to this one in the phone book and added this contact to Personal ringtones (without any problem :eek:). I will check it a little bit later if it work and will report here.
Before this I added to this contact both variation of this number (with and without inter. format):
+972544*****4
0544*****4
When I add this contact in your app, it automatically choose one with inter. format like explained in your description. But if I have only one number, without inter. format, your app also add it without any problem :confused:
Maybe you can add option to choose which number to use ?

coderus 2016-02-07 20:51

Re: [v0.3.1] Personal Ringtones
 
You can always add number manually.

Schturman 2016-02-07 21:27

Re: [v0.3.1] Personal Ringtones
 
Quote:

Originally Posted by coderus (Post 1498097)
You can always add number manually.

I don't see option in your app to add number manually :confused:
I see only "Add contact"...
Ahhhh.. I think I understand what you mean... After adding contact without inter. format in your app, I can add the same number with international prefix inside the People app to this contact and in this case I can save both of them.
Thank you! will try it later :)

coderus 2016-02-08 06:42

Re: [v0.3.1] Personal Ringtones
 
yeah contacts added to application are not synchronized with phonebook, it just one gets number from contact and saves it in settings.

Schturman 2016-02-08 07:58

Re: [v0.3.1] Personal Ringtones
 
Ok. Finally I tested it and it worked, but I have another problem that I will explain below...
Step 1.
1. Edited contact - removed phone with international format and left the same number in local format.
2. Checked - it worked!
3. Edited contact again - just edded the same number but with international format ( I need both variations of the same number).
4. Reboot
5. First thing I noticed, that "Personal Ringtone" is not show me the contact name, I see only number.
6. Checket - it worked!
It was at night, now in the morning I checked again setting of "Personal Ringtone" and surprise - it show me also the contact name :)
For now all is ok... Thanks!

Step 2.
In your description you say "Sounds and Ambience settings will have no effect.", but here I have a problem...
I tried call to myself from another number that not in the setting of "Personal Ringtone" and it play rington that mentioned in "Default ringtone". This ringtone was when I installed "Personal Ringtone". I tried to change ambience with another ringtones a few times, but it still ringing the same rington that was when I installed your app. I changing ambiences 4 times in the day, but default ringtone not chenged in "Personal Ringtone". Why ?
I tried to change it manually, but it see only my custom audio files from sdcard (all my files here), and can't see ambiences audio files.
Why it not changed automatically with ambience, like you say "Sounds and Ambience settings will have no effect." ?
Thanks

Amboss 2016-02-08 10:35

Re: [v0.3.1] Personal Ringtones
 
Maybe you could use that function which is used within call history for determining number type to show. This is afaik not depending on internationalization or special number format? Here it is : main.formatNumber(remoteUid)

coderus 2016-02-08 14:22

Re: [v0.3.1] Personal Ringtones
 
Schturman, "Sounds and Ambience settings will have no effect." means it cant use your ringtone from settings, only one set in Personal Ringtones as default ringtone.


All times are GMT. The time now is 08:03.

vBulletin® Version 3.8.8