etc/init.d/linphone start Linphoned Starting linphonec daemon linphonec daemon is alive We'll soon make it start automatically on reboot. Now, we start linphone manually to check if above script works. *) echo "Usage: /etc/init.d/foobar " exit 1 esac Stop) echo "Stopping linphonec daemon" linphonecsh exit echo "linphonec daemon is dead" echo "Linphone" # The following part carries out specific functions depending on arguments.Ĭase "$1" in start) echo "Starting linphonec daemon" linphonecsh init -a echo "linphonec daemon is alive" vim /etc/init.d/linphone #! /bin/sh # /etc/init.d/linphone # BEGIN INIT INFO # Provides: linphone # Required-Start: $local_fs $syslog $remote_fs dbus snd-aloop # Required-Stop: $local_fs $syslog $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start linphonec daemons # END INIT INFO # The following part always gets executed. We also want it to be in auto answer mode and start sending whatever it hears on the loopback/fake snoop device added in step below. We want linphone to start automatically when system boots up. While the phone will use WiFi, the kodi can use either WiFi or ethernet cable. IMP: The kodi machine and the smart phone should both be on the same network(LAN). Cons: 1-Consumes slightly more battery than BT. 6-Uses generic mobile App which can also be used to make VOIP calls.
We are going to install Linphone on both XBIAN machine (rPi2) and the smartphone (Android) and stream audio directly between them.
This is a software based solution with very little scripting. The idea is to have something setup on XBIAN (rPi2) and connect to it from smartphone (Android/iOS) which will act as Wifi headphones.
So, I needed a point-to-point solution over wifi for audio as BT did not work for me. Some reading revealed that uPnP won't let me stream audio from whatever I have running on my kodi at any time. I decided not to waste any more time on BT headset and instead started looking into uPnP. It paired fine but would disconnect immediately. Soon, I needed a way to wirelessly stream audio (living with a baby in an apartment) and I struggled a lot with BT headset.
I had my BT controller working and things were running smooth. I chose this distribution as I wanted to tweak Debian settings a bit in order to use bluetooth (BT) controller and headphones (in the future). I have XBIAN (kodi on Debian) running on my rPi2 (Raspberry Pi 2) attached to a 27" monitor with inbuilt speakers.