motom001 / DoorPi

OpenSource VoIP Door-Intercomstation
https://www.doorpi.org/forum/
241 stars 86 forks source link

Adjusted a few minot things to make doorpi work with pjsua again #163

Closed irgsmirx closed 8 years ago

irgsmirx commented 8 years ago

I wanted to replace linphone by pjsua on my doorpi because the much better CPU performance. Unfortunately it did not work out of the box. The small adjustments contained in this pull request made the pjsua library cooperate with doorpi, again.

Unfortunately the pjsua interface seems to suffer from a memory leak. I will try to pinpoint its cause. Video does not work with pjsua, either.

scrutinizer-notifier commented 8 years ago

The inspection completed: 2 new issues

motom001 commented 8 years ago

Kannst Du bitte noch den Weg beschreiben, wie Du pjsua installiert hast? Ich habe schon Probleme mit der Installation der aktuellen Version und kann deshalb aktuell auch nicht mit pjsua testen.

irgsmirx commented 8 years ago

Hi,

kein Problem. Also für mich lief das ziemlich problemlos. Kompiliert habe ich direkt auf dem raspberry.

Ich habe pjproject 2.5.1 heruntergeladen: http://www.pjsip.org/release/2.5.1/pjproject-2.5.1.tar.bz2

Dann habe ich folgende Anleitung befolgt: https://trac.pjsip.org/repos/wiki/Python_SIP/Build_Install

Ich habe sogar noch meine bash history gefunden:

wget http://www.pjsip.org/release/2.5.1/pjproject-2.5.1.tar.bz2 tar xfvj pjproject-2.5.1.tar.bz2 cd pjproject-2.5.1/ ./configure make dep && make clean && make

cd pjsip-apps cd src cd python sudo python ./setup.py install

Das hat tatsächlich schon ausgereicht. Die Bibliothek war kompiliert und die python-Bindings installiert. Dann habe ich die Änderungen, die ich als pull-request eingestellt habe (danke fürs mergen!), gemacht und seitdem läuft meine Sprechanlage mit pjsip.

Ich muss allerdings zweimal am Tag den raspberry neu booten, weil der Speicher seitdem überläuft. Ich hatte noch keine Zeit, das Leck zu suchen.

Neustarten des doorpi-Service funktioniert nicht verlässlich. Zum einen braucht es bei mir mindestens zwei service restarts, um doorpi neu zu starten (bei einem restart wird er nur beendet) - zum anderen habe ich es mit cron noch weniger verlässlich hinbekommen.

Video klappt auch noch nicht.

Aber ich bleibe dennoch bei pjsip, weil linphone 98% CPU belegt und ich deshalb keine verständliche Sprachübertragung zustande bekomme.

Vielleicht können wir uns ja zu pjsip weiter austauschen. Ich persönlich habe großes Interesse, dass das mit Video und ohne Speicherüberlauf klappt und könnte mir vorstellen, dass dmait auch anderen geholfen wäre.

Viele Grüße

Tobias

On 18.07.2016 11:27, Thomas wrote:

Kannst Du bitte noch den Weg beschreiben, wie Du pjsua installiert hast? Ich habe schon Probleme mit der Installation der aktuellen Version und kann deshalb aktuell auch nicht mit pjsua testen.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/motom001/DoorPi/pull/163#issuecomment-233283391, or mute the thread https://github.com/notifications/unsubscribe-auth/AC8g5tkj7SGpcldCRgFXQ_rpSN3oaEm1ks5qW0cdgaJpZM4I_hTg.