Find a file
2021-02-25 14:07:33 +01:00
pylinphone@beb544b3b6 add pylinphone as submodule 2020-12-28 19:50:06 +00:00
webinterface Move webinterface, add websockets, more PoC code 2021-02-24 19:11:06 +01:00
.gitmodules add pylinphone as submodule 2020-12-28 19:50:06 +00:00
apparatinterface.py various Python 3 adjustments 2020-12-28 00:10:47 +00:00
configreader.py various Python 3 adjustments 2020-12-28 00:10:47 +00:00
fetap.ini.example Added blacklist feature 2015-12-27 11:52:38 +01:00
fetapd.py Add callback from statemachine to update webinterface status 2021-02-24 20:40:33 +01:00
fetapd.service specify WorkingDirectory 2020-12-29 01:54:54 +00:00
linphone-daemon.service pass linphone config via --factory-config 2020-12-29 21:55:20 +00:00
linphone.conf added configuration file support 2015-06-04 18:42:08 +02:00
linphone.conf.example Added example linphone.conf 2015-05-28 23:45:30 +02:00
phoneinterface.py Add remote number reading 2021-02-25 14:07:28 +01:00
README.md update documentation 2020-12-29 21:57:51 +00:00
shortcuts.csv.sample added configuration file support 2015-06-04 18:42:08 +02:00
statemachine.py Add callback from statemachine to update webinterface status 2021-02-24 20:40:33 +01:00
webinterface.py Add ring event for webinterface 2021-02-25 14:07:33 +01:00

fetapi - FeTAp with a Raspberry Pi

                                        ,ooFeTApFeTApFeTA%=+-,.
                                ,+FeTAp+'                      `o,,
                         ,oFeTAp+                                  `,
                     ,ooo'                 ,oFeTApFeTAp             o
                   oo              +FeTAp+'            `oo,          H
                  o              o'                      X o         l
              ,@=@+             o          ,,-+*==+-.,    R o      .;
           ,@=@+  o            o'        ,/   22  11  ``,   E`ooooo'
          @@*   @@ oo         o'        /  33 , ` ` ,    ;   T
          @:n   T:@ oo       o         ; 44 ,         .   \  L
          uM:m  A:K   oFeTAp'          ;55 ,           :   ;  A
          E:Rn  N:t      F,            | ` :           ;   |   H
         SC:h    K:o      e,           ` 66 `         , dHHH   C
        A:Ll      L:s      r,           `  77  `. , . 0  `q/    S
      ER:a        P:U       n,            \   88  99  00 ,'      L
     R:Be          i:M       s              `<,,______,-`    sZ, E
    i:T             E:r       p,                             `sZ B
    S:K              l:T       r,                                A
     o:N             H:a        e,                               G
      t:a           s:c          c,                         ,x+x+'
        k:T:@:U:M:R:n;             h,             ,p+e+r+a+t/
          `@:n:M:E:'                `T=i=s=c=h=A=p/

Installation

Some of the following instructions must be executed with root privileges.

Installing fetapd

  1. Clone this repository (together with pylinphone as sub-module)

    cd /opt
    
    git clone https://git.blinkenbunt.org/LUG-Saar/fetapi.git
    git submodule update
    
  2. Configure and enable fetapd as systemd service

    ln -sr fetapd.service /etc/systemd/system/
    systemctl daemon-reload
    systemctl enable fetapd
    

Installing linphone-cli on Raspbian

  1. Install debootstrap

    apt install debootstrap
    
  2. Create a Debian/sid chroot environment

    cd /var/tmp
    mkdir debian-sid
    
    debootstrap --arch=armel --foreign --variant=minbase sid ./debian-sid http://ftp.de.debian.org/debian
    
    chroot debian-sid/ /debootstrap/debootstrap --second-stage
    

    Note: Without --variant=minbase, sound won't work for some strange, unknown reason.

  3. Install linphone-cli inside the chroot environment

    chroot debian-sid/ apt -y install linphone-cli
    
  4. Create user inside the chroot environment

    chroot /var/tmp/debian-sid adduser --disabled-password pi
    
  5. Bind-mount /dev to make ALSA accessible within the chroot

    cat <<EOF >>/etc/fstab
    /dev /var/tmp/debian-sid/dev none bind 0 0
    EOF
    
    mount -a
    
  6. Copy Linphone configuration file

    cp linphone.conf /var/tmp/debian-sid/home/pi/
    
  7. Configure and enable linphone-daemon as systemd service

    ln -sr linphone-daemon.service /etc/systemd/system
    systemctl daemon-reload
    systemctl enable linphone-daemon
    

Configuring fetapd

⚠️ TODO

Identifying soundcard

# chroot /var/tmp/debian-sid /usr/bin/linphonec
...
linphonec> soundcard list
0: ALSA: default
1: ALSA: bcm2835 Headphones
2: ALSA: C-Media USB Headphone Set

Starting fetapd

systemctl start fetapd

(or simply reboot your FeTAp)