GithubHelp home page GithubHelp logo

dpurgin / harbour-callrecorder Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 17.0 1.23 MB

A call recorder for SailfishOS

License: GNU General Public License v3.0

QMake 3.19% C++ 50.68% C 0.33% QML 45.63% Shell 0.16%
harbour-callrecorder qt5 sailfishos

harbour-callrecorder's People

Contributors

0312birdzhang avatar alpherie avatar dpurgin avatar eson57 avatar ivucica avatar lightx2 avatar martonmiklos avatar ortylp avatar pylersm avatar self-perfection avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

harbour-callrecorder's Issues

Need info: Default storage location

Hi,

I would like to know what is the default storage path by mistake I changed it. So now all the recording come into my music player.

Could you please help me with this?
Thanks,

Info on recording

Hi,

Is there a way that we can save the recording with the contact name instead of the contact number?
In the UI it shows the contact name but when it's saved on the storage path it's saved as the contact number.
Thanks,

Use speex instead of the FLAC codec

Hi,

Can you please use the speex instead of the FLAC codec, it is far better at low bitrates because it is dedicated to voice recordings?

It is already available in QtMultimedia.

You can look at sailfish-recorder to see how it is done.

Length displayed incorrectly for recordings over an hour in length

I have a recording that is 1 hour 15:55 mins in length. In the UI (both in the list and in the record view) 15:55 is shown as the length. The player slider shows the length correctly up to 59:59, after which the length starts again from zero, ie. hours seem to be ignored in the length.

Translation bug

Hi,

Source line 23 in ui.ts do not translate. See screen below.
Great app btw. Thanks!

screenshot-14-04-15-10-22-33

Unknown numbers break UI

If a call from an unknown number is recorded, the line with the duration, size and time of the call overlaps with the line where the number is in normal calls. I think adding a string "Unknown number" for calls like this, like in the Phone application, would probably fix it.

Ability to reencode older recordings with other codec

Spacewise it might make sense to be able to re-encode older recordings with another codec.

Not really sure about ui, might be manual selection of recordings or select everything with (default encoder and cutoff date). Should be able to select the codec and it's settings.

Could be an automatic thing, possibly activated when some user-configurable amount of space is used by recordings.

Очень тихи входящий сигнал

Стал очень тихо записывать входящий сигнал, раньше было все в порядке, могло как-то обновление ОС повлиять?

Search by contact name of phone number in the list of recordings

As requested by raj_faisal2004 on openrepos:

i would like to ask for an option which would be very helpful i think. that is addition of SEARCH option
so that if i want to select a specific name/number's call recording then i can easily find all recordings
of the person/number and then carry on with the next option like deleting, listening etc

Feature request

Hi,

I would like to request for a new feature in the application.
It would be nice if we can backup the recorded calls to a cloud storage like dropbox/onedrive and store it under year/month/data folders hierarchy.
In the upcoming update from jolla they are allowing the photos to be uploaded to dropbox/onedrive can the same be used for callrecorder as well?

Thanks,

Sometimes harbour-callrecorderd starts to constantly use 100% of CPU

It seems that it somehow related to phone call events. Dunno whether it is caused by answering call, stopping call or maybe during call. A bit of diagnostis follows.

Hangs just one thread (see light weight process (thread) ID 4143):

$ ps -FLC harbour-callrecorderd
UID        PID  PPID   LWP  C NLWP    SZ   RSS PSR STIME TTY          TIME CMD
nemo      3989   863  3989  0    9 91611 12632   0 Nov02 ?        00:01:20 /usr/bin/harbour-callrecorderd
nemo      3989   863  4010  0    9 91611 12632   1 Nov02 ?        00:00:00 /usr/bin/harbour-callrecorderd
nemo      3989   863  4141  0    9 91611 12632   1 Nov02 ?        00:00:16 /usr/bin/harbour-callrecorderd
nemo      3989   863  4143  3    9 91611 12632   0 Nov02 ?        01:56:34 /usr/bin/harbour-callrecorderd
nemo      3989   863  4144  0    9 91611 12632   0 Nov02 ?        00:00:01 /usr/bin/harbour-callrecorderd
nemo      3989   863  4145  0    9 91611 12632   0 Nov02 ?        00:00:00 /usr/bin/harbour-callrecorderd
nemo      3989   863  4146  0    9 91611 12632   1 Nov02 ?        00:00:00 /usr/bin/harbour-callrecorderd
nemo      3989   863  4189  0    9 91611 12632   0 Nov02 ?        00:00:04 /usr/bin/harbour-callrecorderd
nemo      3989   863  4259  0    9 91611 12632   0 Nov02 ?        00:00:00 /usr/bin/harbour-callrecorderd

It seems hanged thread constantly tries to read something:

$ strace -tt -p 4143 |& head -10
Process 4143 attached
23:26:04.652947 read(18, 0x4e4ffc58, 10) = -1 EAGAIN (Resource temporarily unavailable)
23:26:04.654900 read(18, 0x4e4ffc58, 10) = -1 EAGAIN (Resource temporarily unavailable)
23:26:04.655052 read(18, 0x4e4ffc58, 10) = -1 EAGAIN (Resource temporarily unavailable)
23:26:04.655236 read(18, 0x4e4ffc58, 10) = -1 EAGAIN (Resource temporarily unavailable)
23:26:04.655419 read(18, 0x4e4ffc58, 10) = -1 EAGAIN (Resource temporarily unavailable)
23:26:04.656334 read(18, 0x4e4ffc58, 10) = -1 EAGAIN (Resource temporarily unavailable)
23:26:04.656517 read(18, 0x4e4ffc58, 10) = -1 EAGAIN (Resource temporarily unavailable)
23:26:04.656670 read(18, 0x4e4ffc58, 10) = -1 EAGAIN (Resource temporarily unavailable)
23:26:04.656853 read(18, 0x4e4ffc58, 10) = -1 EAGAIN (Resource temporarily unavailable)

But I don't have any idea what it tries to read:

$ ls -l /proc/4143/fd/18
lr-x------ 1 nemo nemo 64 2015-11-04 23:00 /proc/4143/fd/18 -> pipe:[1770970]

Such situation happened to me 2 or 3 times. Really annoying to find 2 hours after a call that your device is suddenly almost out of charge.
P.S.: I'm still using 0.6.0 version, just learned there is newer release. But it does not look like 0.6.1 have related fixes.

Remove old recordings automatically

As requested by clouseau at openrepos.net:

a feature request: log rotation - namely, an option to delete old recordings automatically on a number or date basis

"Automatic startup" refuses to activate

"Active" can be activated, "Automatic startup" cannot. After reboot "Active" option has to be manually ticked on.

Am I missing something or it is still work in progress?

Daemon crashes on startup on 2.1.0.9

Looks like Qt5.6 broke something:

harbour-callrecorderd: Tue Feb 14 14:07:39 2017: [0x01333990]: PageStack.qml:996: : file:///usr/lib/qt5/qml/Sailfish/Silica/PageStack.qml:996:13: QML Binding: Property '_belowTop' does not exist on ApprovalDialog.
harbour-callrecorderd: Tue Feb 14 14:07:39 2017: [0x01333990]: PageStack.qml:990: : file:///usr/lib/qt5/qml/Sailfish/Silica/PageStack.qml:990:13: QML Binding: Property '_exposed' does not exist on ApprovalDialog.
harbour-callrecorderd: Tue Feb 14 14:07:39 2017: [0x01333990]: PageStack.js:461: : file:///usr/lib/qt5/qml/Sailfish/Silica/PageStack.js:461: TypeError: Cannot call method 'connect' of undefined
Segmentation fault

Request; help me fix Call Recorder t work on Nexus5 (Hammerhead)

I recently made my own port of SFOS 2.0.2.48 on CM12.1/Hammerhead.

Most of the things that I need work on my port but Call Recorder is one of the things that doesen't; not a surprise since I expect the HW differs somewhat from what we have on sbj-1

I would like your help in fixing this so that it works also on ported devices (at least Hammerhead)

Symptoms;

  • the UI works as expected
  • the callrecorderd daemon runs without apparent problems
  • when a call is made/received, a FLAC file is created, however it does not contain any sound or the sound data is almost nonexistent. The file is extremely short; couple of minutes of call creates just a second's worth of data.
  • for example, a call that lasted 3m16s only created a file 8,1kB long. The file is "FLAC audio bitstream data, 16 bit, mono, 32 kHz, 35840 samples" and as played with 32kHz only lasts just over a second.

What I have checked already;

  • the daemon is running
  • pulseaudio has been connected (this is same on both Jolla-sbj1 and Nexus5:

[nemo@Sailfish ~]$
[nemo@Sailfish ~]$ pacmd info | grep record
application.process.binary = "harbour-callrecorderd"
application.process.arg0 = "/usr/bin/harbour-callrecorderd"
application.name = "harbour-callrecorder"
application.process.binary = "harbour-callrecorderd"
application.process.arg0 = "/usr/bin/harbour-callrecorderd"
application.process.binary = "harbour-callrecorder"
application.icon_name = "harbour-callrecorder"
application.process.arg0 = "harbour-callrecorder"
voicecall-record: Call mode record (priority 0, available: no)
[nemo@Sailfish ~]$

Empty list placeholder appears sometimes when having small number of recordings

As reported by pichlo on TMO:

I made a few test calls to the same number (the remainng credit check), then opened Call Recorder and deleted one from the list. I must add that the credit check calls were the only items on the list. The moment I deleted one, a big "No calls recorded yet" appeared in the middle of the screen
...
An example - I have 2 calls on the list, make a 3rd one (with Call Recorder open) and - "No calls recorded yet" appears. I delete one - so that 2 remain - and the top remaing one reacts to the tap but the bottom one doesn't. Or vice-versa.

The issue is 100% reproduced when deleting recordings one by one in Recording page. The placeholder appears if only one list item is left.

Allow user decide whether save or delete last call

As proposed by HtheB on TMO:

Can we have an option that it asks before saving after each phone call?
So if you press no, it will delete file, otherwise it will save it. (So if somehow the message dissapairs,
it will still save the recording)

Call Recorder problems with XperiaX

Hi.
I have installed harbour-callrecorder 0.7.1-5 on my Sony Xperia, under SailfishOS version 2.1.3.5 (Kymijoki) and everything works as usual (I also have it installed in a Jolla1 and JollaC), except for the recordings:
Seems to me that there's something wrong with the recording sampling rate, resulting in recorded files with the audio reproduced very, very slowly :D

For a sample, you can use the file I attached at TMO here:
http://talk.maemo.org/showpost.php?p=1536643&postcount=160

Thanks in advance, and thank you for this fantastic application.
Regards.

Possible CRLF problems in launcher script

As reported by coderus on TMO:

[nemo@Sailfish ~]$ harbour-callrecorder-launcher.sh
-bash: /usr/bin/harbour-callrecorder-launcher.sh:
/bin/bash^M: bad interpreter: No such file or directory

Recording daemon stops on lipstick restart

I pretty often do systemctl --user restart lipstick as it the fast way to reclaim RAM without full phone reboot (lots of services seems to leak memory). And after restart harbour-callrecorderd becomes not running, so I used manually start it each time. Quite annoying.

Journalctl from lipstick restart:

мар 27 18:03:11 Jolla harbour-callrecorderd[10510]: harbour-callrecorderd: Sun Mar 27 18:03:11 2016: [0x01c3c1a8]: qwaylandeventthread.cpp:81: void QWaylandEventThread::checkError() const: The Wayland connection broke. Did the Wayland compositor die?
мар 27 18:03:11 Jolla ohmd[410]: *** resource_request:  unregister   89
мар 27 18:03:12 Jolla kernel: mdp4_mixer_blend_setup: Error: no bg_pipe at mixer=0
мар 27 18:03:12 Jolla kernel: mipi_truly_otm9608a_lcd_off()
мар 27 18:03:12 Jolla kernel: mipi_truly_otm9608a_lcd_off()--
мар 27 18:03:12 Jolla systemd[861]: harbour-callrecorderd.service: main process exited, code=exited, status=1/FAILURE
мар 27 18:03:12 Jolla systemd[1]: Stopped Myriad Alien Dalvik.
мар 27 18:03:12 Jolla systemd[1]: Stopping Myriad Alien Dalvik Settings...
мар 27 18:03:12 Jolla systemd[861]: Unit harbour-callrecorderd.service entered failed state.
...
мар 27 18:03:13 Jolla harbour-callrecorderd[6332]: [D] QQmlDebuggingEnabler::QQmlDebuggingEnabler:1455 - QML debugging is enabled. Only use this in a safe environment.
мар 27 18:03:13 Jolla harbour-callrecorderd[6332]: [C] unknown:0 - Failed to create display (No such file or directory)
мар 27 18:03:13 Jolla systemd[861]: harbour-callrecorderd.service: main process exited, code=exited, status=1/FAILURE
мар 27 18:03:13 Jolla systemd[861]: Unit harbour-callrecorderd.service entered failed state.

There are a few more restarts in log and harbour-callrecorder.serivce settles in failed state before wayland becomes available.

I found a workaround: after I've moved symlink to service file from ~/.config/systemd/user/user-session.target.wants to ~/.config/systemd/user/post-user-session.target.wants harbour-callrecorder.service seems to start just fine on phone boot and on lipstick restart. So it seems tempting to write simple pull request to change target that wants the service.

However dependency of sound recording daemon on display availability (see logs above) seems odd and redundant. Is it possible to drop wayland dependency? I bet it is unused and getting rid of it would reduce daemon footprint.

Landscape Mode

Hello,

Landscape mode would be useful so that the horizontal scroll bar can be longer, allowing finer grain fast-forwarding and rewinding.

Thanks Mr. Purgin for this awesome app,
Robin

2.0.2 Aurajoki - Call recorder

Hi,

I was just reading the release notes for 2.0.2 Aurajoki they say that they have a native call recorder. I wanted to know if we can still use your app on that version or there will be a conflict?

Thanks,

Files are not deleted on batch file deletion in some cases

As reported by Moritz Thiele on Facebook:

select all for batch delete operation removes only the entries in the UI / db but leaves the files intact.
Has always been like that for me, irrespective of the location on SD or nemo subdir. I checked the
folder permissions and everything is okay.

Install/Update error still present after all this time

Doesn't mater if I update or do a fresh install, I always get the following error:

Error on file "/home/deploy/installroot/usr/share/applications/*.desktop": No such file or directory
warning: %post(harbour-callrecorder-0.7.1-5.armv7hl) scriptlet failed, exit status 1

Approval does not work, recordings are always dumped on disk

Hi there,
on latest sailfish os (and also before), I have discovered that approval for storage does not work.

Answering "remove" after a call makes the recording not appearing in the list of recordings indeed; but going to the storage location (with another app or terminal), I was not really pleased to see that actually all calls were recorded and dumped. This is very problematic for security and disk space. Users are not aware that all their calls are recorded and stored even if they answer "remove" after their privacy calls.

Please fix it!
Cheers,
chris.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.