[MVMA] Linphone on a Linux Notebook

Moe ab8xa at arrl.net
Tue Dec 18 12:43:21 EST 2018


I don't have a Windows computer, but perhaps if
you do, you might adapt these instructions or
contacts.

Decide how you're going to access the mesh and the
internet from the notebook.

If you need to use the notebook's Wi-Fi interface
to access your home network or a hot spot, you'll
need to use Ethernet (perhaps USB-A or USB-C to
ethernet adapter) for wired mesh access.

If you can tether your iPhone to a USB-A or USB-C
port or adapter for wired hot spot (and to keep the
phone charged from the notebook), you can use the
notebook Wi-Fi to connect to a mesh access point,
i.e. the 5.8 AP on a MikroTik hAP. Or you can use
an Ethernet port or adapter for wired mesh access.

0. Install linphone on your notebook with the
    terminal commands:
     sudo apt update
     sudo apt-get install linphone

1. Connect your Linux notebook to your mesh node's
    LAN (either by wire or wireless)

2. Go into node Setup where you should see the
    notebook with a DHCP address below the reservations.
    Click Add, change the name to callsign-notebook in
    all lowercase and choose a Reserved DHCP IP address.
    I use the last IP address in the node's DHCP range.
    Click Save Changes.

3. Launch Linphone and select Options -> Preferences

4. On the Network settings tab, click
    "Behind Nat / Firewall (specify gateway IP)" and
    enter the notebook IP chosen in Step 2 in the
    "Public IP Address" field.

5. On the Multimedia settings tab, ensure
    Echo Cancellation is checked and the correct
    audio/video ports for your notebook are chosen.

6. On the Manage SIP Accounts page,
    enter "CALLSIGN Notebook" in "Your display name"
    enter the IP chosen in Step 2 in "Your username"
    and the resulting SIP will be IP at IP
    It's important username be your IP address so
    those who miss your calls can return them from
    their Call History.

7. If you have a PBX extension from NC8Q, click the
    Add Button and enter:
    sip:your_extension at asterisk for "Your SIP Identity"
    sip:nc8q-raspbx.local.mesh for "SIP Proxy Address"
    3600 for "Registration duration (sec)" (1 hour)
    Check Register and uncheck Publish Presence info
    Click OK and click Done
    You will eventually get a popup asking for your
    password on asterisk. Once you've entered it
    you should see:
    "Registration on <sip:nc8q-raspbx.local.mesh>
     successful." at the bottom of the main window.
    This registration will take a few seconds every
    time you start Linphone. If the PBX is down or
    unreachable, it will eventually time out.

You can add Contacts manually, but do them bottom
to top since Linphone displays them in reverse.

To use my contacts, Select Options -> Quit
(don't just close the window--that leaves the
process running). Then open a terminal window
and enter:
killall linphone
cd
cp ~/.linphonerc ~/.linphonerc.backup
then open ~/.linphonerc with your favorite editor
and paste the following friends at the end of the
file. Ensure there is one and only one line between
.linphonerc entries and ensure there are no
duplicates of these friend_# entries.
(note these are in reverse)

[friend_20]
url="AB8XA 1630" <sip:10.22.27.26>
pol=deny
subscribe=0

[friend_19]
url="AB8XA Notebook" <sip:10.22.27.30>
pol=deny
subscribe=0

[friend_18]
url="AB8XA Mobile" <sip:10.179.233.110>
pol=deny
subscribe=0

[friend_17]
url="AE8I 1630" <sip:10.162.116.105>
pol=deny
subscribe=0

[friend_16]
url="K8IO 1620" <sip:10.130.233.195>
pol=deny
subscribe=0

[friend_15]
url="KD8DGH 1620" <sip:10.163.207.70>
pol=deny
subscribe=0

[friend_14]
url="KD8UQI 1620" <sip:10.16.81.42>
pol=deny
subscribe=0

[friend_13]
url="N8JJ 3240" <sip:10.81.226.170>
pol=deny
subscribe=0

[friend_12]
url="NC8Q 1630" <sip:10.118.97.219>
pol=deny
subscribe=0

[friend_11]
url="NC8Q-Desktop" <sip:10.174.162.35>
pol=deny
subscribe=0

[friend_10]
url="W8GUC 1630" <sip:10.164.67.52>
pol=deny
subscribe=0

[friend_9]
url="W8GUC-2 1630" <sip:10.70.194.235>
pol=deny
subscribe=0

[friend_8]
url="W8GUC-3 ATA" <sip:10.70.124.234>
pol=deny
subscribe=0

[friend_7]
url="W8KJ 1620" <sip:10.215.205.173>
pol=deny
subscribe=0

[friend_6]
url="W8LRJ ????" <sip:10.179.222.126>
pol=deny
subscribe=0

[friend_5]
url="W8LRJ Notebook" <sip:10.179.222.126>
pol=deny
subscribe=0

[friend_4]
url="W8MRL 1620" <sip:10.47.235.4>
pol=deny
subscribe=0

[friend_3]
url="WA8APB 3240" <sip:10.143.159.68>
pol=deny
subscribe=0

[friend_2]
url="WA8APB ATA" <sip:10.143.159.67>
pol=deny
subscribe=0

[friend_1]
url="WA8APB Notebook" <sip:10.143.159.68>
pol=deny
subscribe=0

[friend_0]
url="Conference Call" <sip:1093 at 10.233.251.151>
pol=deny
subscribe=0


You must have your current identity set to
<sip:extension at astersik> for Conference Call
Use your default identity for direct IP dial.

If you need to edit one of my entries later,
do it with your command line editor, not from
within Linphone. That may mess up the order.

Until W8LRJ gets a physical phone, I've
reserved an entry for that as W8LRJ ???? with
the same IP as his notebook.


-- 
Moe
73 de AB8XA
When all else fails...
Ham Radio WON'T be there
if it depends on all else.



More information about the MVMA mailing list