Linphone Deamon

Since raspberry pi doesn not have a mircophone port, we must provide a dummy device as input for linphone to work.

$ modprobe snd-dummy
$ aplay -l      #list soundcards
*** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 1: Dummy [Dummy], device 0: Dummy PCM [Dummy PCM]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7

Linphone package provides linphonecsh a deamon mode to run linphone. This can used for our overhead speakers as following. $ linphonecsh init # Intialize the deamon

$ linphonecsh register --host <host> \
 --username <username> --password <password>  # Register the node
$ linphonecsh generic 'autoanswer enable'  # Enable the autoanswer mode

It also supports few configuration instructions.

$ linphonecsh soundcard list  # Soundcard configuration
0: ALSA: default device
1: ALSA: bcm2835 ALSA
2: ALSA: Dummy
3: PulseAudio: default

$ linphonecsh soundcard playback 1   # set the playback to 1st soundcard.

References