Date   

DVSwitch Server Raspberry Pi Image

Steve N4IRS
 

I let the cat out of the bag in the Mobile subgroup so for everyone else...

We have  been working to enhance AB, MB and dvswitch.sh We have been trying to squash bugs and provide the features we know were needed and we have seen requested here on groups.io. The changes made to the basic components of DVSwitch will enhance not only Mobile users but bridges and other more esoteric applications. All of the TESTING for now has been on the ARM family but once we are ready to release, we will build ALL of the apt packages to support the 4 hardware families:

armhf:      32 bit (Raspberry Pi all models) (Orange Pi) (Nano pi) etc Pretty much any Debian based ARM board.
i386:        32 bit (low power Intel and compatible)
amd64:   64 bit (Intel and compatible)
arm64:    64 bit (ARM)

That's 16 packages for each hardware family. These packages are in apt format for Debian compatible systems. If you run something else (Arch, Centos etc) the binaries and support files are available on Github. The process is, when a binary is updated, it's uploaded to github and then it's built into a apt package right away. Github and apt will be in sync. This means that to get the most current binary for your hardware family it's simply apt-get update / apt-get upgrade.
All of the packages can be installed or added. You don't have to install everything, just what you need or add what you want. Add the dashboard to Quantar, add the menu to dvswitch. It's up to you.

All packages include the scripting needed for updating the data files, pushing updated data to the mobile clients, log file management and some scripting to help in troubleshooting.
We have included binaries for the support programs needed. This includes md380-emu, NXDNGateway NXDNParrot, P25Gateway, P25Parrot, YSFGateway. YSFParrot and ircDDBGateway. These programs are build directly from the authors github repositories.

All of the programs are installable individually. How do you know what programs to install you ask. We have grouped these programs together in a "Meta Package" for easy install

For example:
apt-get install dvswitch
Will install analog-bridge, md380-emu, mmdvm-bridge, nxdngateway, nxdnparrot, p25gateway, p25parrot, ysfgateway, ysfparrot, ircddbgateway, quantar-bridge

apt-get install dvswitch-quantar
Will install mmdvm-bridge, quantar-bridge, p25gateway, p25parrot
Just what you would need for putting a Quantar repeater on the MMDVM P25 network

apt-get install dvswitch-server
Will install all of the above plus the Menu, Dashboard and System Monitor.

Menu? Dashboard? System Monitor?
The Menu system will walk you through basic setup. You enter your callsign, DMR ID etc and the menu will place the proper values into the .ini files. The menu will also help a DVSM or pyUC user configure Macros. You can upload sample macros to clients. You can also customize macros. The menu system is built with translation files to allow easy translation to other languages. Some of these are machine translations, so we hope they are close to correct. The first release menus will be available in the following languages:
English
French
German 
Greek 
Japanese 
Korean 
Polish 
Spanish

The documentation is being written. That is not to say ever nuance of AB, MB and dvswitch.sh are covered. The doc is geared towards the user of DVSM who wants to build his own server. Either from a image or from a script The documentation will be available in English, Korean Polish (to start)

The dashboard is a modified version of the Pi-Star Dashboard. <http://server.dvswitch.org>

The System Monitor is built on Monit. Monit can monitor the health of services, monitor data file updates, run periodic program checks. Monit has been configured to restart some services if they start to use too many resources. This web page is locked down so only local connections can view it. <http://server.dvswitch.org/demo_monit.png>

We have built a Raspberry Pi Buster image that contains all of the programs in a ready to run format. All you have to do is burn the image to a SD card, insert the card in a Raspberry Pi (any model) and go. If you don't want to run a Raspberry Pi, or you have a existing Debian based system you want to add to, you can do that too. apt-get install dvswitch-server will install everything installed on Raspberry Pi image onto your system. We have reached Release candidate 2 which means baring any unforeseen issues, we will release soon. The accompanying documentation is being tweaked now. A lot of work has gone into refining the packages. I expect there will be problems found after release. Those fixes will be applied using the apt install / upgrade system. All I can say is anything over 10 lines of code has a bug, in my case anything over 2 lines of code and the first line is a comment.

This does not cover all of the features available. Image clone, file backup/restore password recovery Just to name a few.

 I have posted the first introductory video. <https://youtu.be/ykW8oF1AGUc> 

We are working hard on this. When I say we, I mean Mike and I and a number of others. If my wife does not kill me first, it should be out soon. As someone in the software industry once said, "Just 2 weeks"


Re: Problems Connecting

 

Thanks, Steve.

Richard


Re: Problems Connecting

Steve N4IRS
 

You need to configure your extensions.conf See page 6 of this document <https://hamvoip.org/howto/iaxrpt-config.pdf>

73, Steve N4IRS

On 10/21/20 5:17 PM, RichardM wrote:

Here are iax.conf and extensions.conf

Thanks for your help.

Richard



Re: Problems Connecting

 

Here are iax.conf and extensions.conf

Thanks for your help.

Richard


Re: Problems Connecting

 

OK, fetching them both.

Richard


Re: Problems Connecting

Steve N4IRS
 

One last time.
iax.conf
extensions.conf

Sent by smoke signal (AT&T)


From: main@DVSwitch.groups.io <main@DVSwitch.groups.io> on behalf of RichardM <rchrdm@...>
Sent: Wednesday, October 21, 2020 4:46:19 PM
To: main@DVSwitch.groups.io <main@DVSwitch.groups.io>
Subject: Re: [DVSwitch] Problems Connecting
 

Sorry, I thought I did read your replies.

You asked for IAX.conf and RPT.conf.  I uploaded IAX.conf above.  Is that one of the files you need?

Richard


Re: Problems Connecting

 

Sorry, I thought I did read your replies.

You asked for IAX.conf and RPT.conf.  I uploaded IAX.conf above.  Is that one of the files you need?

Richard


Re: Problems Connecting

Steve N4IRS
 

Please read my replies!


From: main@DVSwitch.groups.io <main@DVSwitch.groups.io> on behalf of RichardM <rchrdm@...>
Sent: Wednesday, October 21, 2020 4:28:47 PM
To: main@DVSwitch.groups.io <main@DVSwitch.groups.io>
Subject: Re: [DVSwitch] Problems Connecting
 
Above I uploaded IAX.conf and RPT.conf.

So, that includes IAX.conf, correct?  I will get RPT.conf.

Richard


Re: Problems Connecting

 

Above I uploaded IAX.conf and RPT.conf.

So, that includes IAX.conf, correct?  I will get RPT.conf.

Richard


Re: Problems Connecting

Steve N4IRS
 

No, I need:
Iax.conf
extensions.conf


From: main@DVSwitch.groups.io <main@DVSwitch.groups.io> on behalf of RichardM <rchrdm@...>
Sent: Wednesday, October 21, 2020 4:12:30 PM
To: main@DVSwitch.groups.io <main@DVSwitch.groups.io>
Subject: Re: [DVSwitch] Problems Connecting
 
We still have the same problem.

Do you have the right files now?

Richard


Re: Problems Connecting

 

We still have the same problem.

Do you have the right files now?

Richard


Re: Problems Connecting

Steve N4IRS
 

Does that mean you are no longer having a problem?

On 10/21/2020 3:43 PM, RichardM wrote:

BTW, the nodes we are working with are 519980 and 519981.

Richard



Re: Problems Connecting

 

BTW, the nodes we are working with are 519980 and 519981.

Richard


Re: Problems Connecting

Steve N4IRS
 

I need extensions.conf and iax.conf

On 10/21/2020 3:39 PM, RichardM wrote:
Here are the files.

Richard


Re: Problems Connecting

 

Here are the files.

Richard


Re: radioid.net URL update in dvswitch.sh

Steve N4IRS
 

FYI, this is the current version:
root@DVSwitch-Server:~# /opt/MMDVM_Bridge/dvswitch.sh -v
dvswitch.sh version 1.5.9


On 10/20/20 5:05 PM, k7wby@... wrote:
The complete version of how to update  dvwitch.sh with the correct urls to the RadioID.net database.

cd /opt/Analog_Bridge
ls -al (look for dvswitch.sh, if its not there then look in /opt/MMDVM_Bridge. If it's in MMDVM_Bridge then stop, you have the latest version.)
cp dvswitch.sh dvswitch.old (humor me and make a quick backup just for fun)
rm dvswitch.sh (delete the original version)
wget https://github.com/DVSwitch/MMDVM_Bridge/raw/master/dvswitch.sh
chmod +x dvswitch.sh (make it executable)
./dvswitch.sh update (if this runs and does not produce any errors then you're golden. if you get errors, then start at the beginning and try again.)

if all goes according to plan then
rm dvswitch.old 


Re: Problems Connecting

Steve N4IRS
 

Richard,
Without seeing the relevant sections of iax.conf and extensions.conf all I can say this is your clue:
[Oct 21 00:46:18] WARNING[2817]: app_rpt.c:21237 rpt_exec: Cannot find specified system node 1998


On 10/21/20 12:59 AM, RichardM wrote:
Hello

I am setting up DVSwitch to connect to an AllStar node in my house.  I can connect to it using IAXRPT on the PC, but when I try this with DVSwitch, it goes into a loop connecting and disconnecting. 

A friend looked into this and suggested that I post the following information. Can someone help us with this?

Richard

----

Message follows:

I have an Allstar node (Raspberry Pi 4) running HamVoip. I've done an update, so it's running all of the latest patches.

When I use DVSwitch to connect to my node (519980), the following error shows up in the Asterisk CLI log level 4. Note that if I have "autoload node" set to ON, the message repeats itself over and over until there is a crash.

Running DVSwitch 1.57 (130).

          Starting Asterisk client. Please type: exit<ENTER>
           when done and you will return to the admin menu.

Asterisk 1.4.23-pre.hamvoip-V1.6.2-10 app_rpt-0.327-06/01/2020, Copyright (C) 1999 - 2020 HamVoIP.org and others.
Created by Mark Spencer <markster@...>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.4.23-pre.hamvoip-V1.6.2-10 app_rpt-0.327-06/01/2020 currently running on Richnode1 (pid = 2785)
Verbosity was 3 and is now 4
    -- Registered IAX2 'myphone-iaxrpt' (AUTHENTICATED) at 208.86.127.233:1025
    -- Accepting AUTHENTICATED call from 208.86.127.233:
       > requested format = unknown,
       > requested prefs = (slin|ulaw|adpcm),
       > actual format = ulaw,
       > host prefs = (ulaw),
       > priority = mine
    -- Executing [519980@phone-iaxrpt:1] Answer("IAX2/myphone-iaxrpt-314", "") in new stack
    -- Executing [519980@phone-iaxrpt:2] Playback("IAX2/myphone-iaxrpt-314", "rpt/node") in new stack
    -- <IAX2/myphone-iaxrpt-314> Playing 'rpt/node' (language 'en')
    -- Executing [519980@phone-iaxrpt:3] Playback("IAX2/myphone-iaxrpt-314", "digits/1") in new stack
    -- <IAX2/myphone-iaxrpt-314> Playing 'digits/1' (language 'en')
    -- Executing [519980@phone-iaxrpt:4] Playback("IAX2/myphone-iaxrpt-314", "digits/9") in new stack
    -- <IAX2/myphone-iaxrpt-314> Playing 'digits/9' (language 'en')
    -- Executing [519980@phone-iaxrpt:5] Playback("IAX2/myphone-iaxrpt-314", "digits/9") in new stack
    -- <IAX2/myphone-iaxrpt-314> Playing 'digits/9' (language 'en')
    -- Executing [519980@phone-iaxrpt:6] Playback("IAX2/myphone-iaxrpt-314", "digits/8") in new stack
    -- <IAX2/myphone-iaxrpt-314> Playing 'digits/8' (language 'en')
    -- Executing [519980@phone-iaxrpt:7] Set("IAX2/myphone-iaxrpt-314", "CALLERID(num)=0") in new stack
    -- Executing [519980@phone-iaxrpt:8] Rpt("IAX2/myphone-iaxrpt-314", "1998|P|KJ7PLR") in new stack
[Oct 21 00:46:18] WARNING[2817]: app_rpt.c:21237 rpt_exec: Cannot find specified system node 1998
  == Spawn extension (phone-iaxrpt, 519980, 8) exited non-zero on 'IAX2/myphone-iaxrpt-314'
    -- Hungup 'IAX2/myphone-iaxrpt-314'
Richnode1*CLI>


Problems Connecting

 

Hello

I am setting up DVSwitch to connect to an AllStar node in my house.  I can connect to it using IAXRPT on the PC, but when I try this with DVSwitch, it goes into a loop connecting and disconnecting. 

A friend looked into this and suggested that I post the following information. Can someone help us with this?

Richard

----

Message follows:

I have an Allstar node (Raspberry Pi 4) running HamVoip. I've done an update, so it's running all of the latest patches.

When I use DVSwitch to connect to my node (519980), the following error shows up in the Asterisk CLI log level 4. Note that if I have "autoload node" set to ON, the message repeats itself over and over until there is a crash.

Running DVSwitch 1.57 (130).

          Starting Asterisk client. Please type: exit<ENTER>
           when done and you will return to the admin menu.

Asterisk 1.4.23-pre.hamvoip-V1.6.2-10 app_rpt-0.327-06/01/2020, Copyright (C) 1999 - 2020 HamVoIP.org and others.
Created by Mark Spencer <markster@...>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.4.23-pre.hamvoip-V1.6.2-10 app_rpt-0.327-06/01/2020 currently running on Richnode1 (pid = 2785)
Verbosity was 3 and is now 4
    -- Registered IAX2 'myphone-iaxrpt' (AUTHENTICATED) at 208.86.127.233:1025
    -- Accepting AUTHENTICATED call from 208.86.127.233:
       > requested format = unknown,
       > requested prefs = (slin|ulaw|adpcm),
       > actual format = ulaw,
       > host prefs = (ulaw),
       > priority = mine
    -- Executing [519980@phone-iaxrpt:1] Answer("IAX2/myphone-iaxrpt-314", "") in new stack
    -- Executing [519980@phone-iaxrpt:2] Playback("IAX2/myphone-iaxrpt-314", "rpt/node") in new stack
    -- <IAX2/myphone-iaxrpt-314> Playing 'rpt/node' (language 'en')
    -- Executing [519980@phone-iaxrpt:3] Playback("IAX2/myphone-iaxrpt-314", "digits/1") in new stack
    -- <IAX2/myphone-iaxrpt-314> Playing 'digits/1' (language 'en')
    -- Executing [519980@phone-iaxrpt:4] Playback("IAX2/myphone-iaxrpt-314", "digits/9") in new stack
    -- <IAX2/myphone-iaxrpt-314> Playing 'digits/9' (language 'en')
    -- Executing [519980@phone-iaxrpt:5] Playback("IAX2/myphone-iaxrpt-314", "digits/9") in new stack
    -- <IAX2/myphone-iaxrpt-314> Playing 'digits/9' (language 'en')
    -- Executing [519980@phone-iaxrpt:6] Playback("IAX2/myphone-iaxrpt-314", "digits/8") in new stack
    -- <IAX2/myphone-iaxrpt-314> Playing 'digits/8' (language 'en')
    -- Executing [519980@phone-iaxrpt:7] Set("IAX2/myphone-iaxrpt-314", "CALLERID(num)=0") in new stack
    -- Executing [519980@phone-iaxrpt:8] Rpt("IAX2/myphone-iaxrpt-314", "1998|P|KJ7PLR") in new stack
[Oct 21 00:46:18] WARNING[2817]: app_rpt.c:21237 rpt_exec: Cannot find specified system node 1998
  == Spawn extension (phone-iaxrpt, 519980, 8) exited non-zero on 'IAX2/myphone-iaxrpt-314'
    -- Hungup 'IAX2/myphone-iaxrpt-314'
Richnode1*CLI>


Re: radioid.net URL update in dvswitch.sh

k7wby@...
 

The complete version of how to update  dvwitch.sh with the correct urls to the RadioID.net database.

cd /opt/Analog_Bridge
ls -al (look for dvswitch.sh, if its not there then look in /opt/MMDVM_Bridge. If it's in MMDVM_Bridge then stop, you have the latest version.)
cp dvswitch.sh dvswitch.old (humor me and make a quick backup just for fun)
rm dvswitch.sh (delete the original version)
wget https://github.com/DVSwitch/MMDVM_Bridge/raw/master/dvswitch.sh
chmod +x dvswitch.sh (make it executable)
./dvswitch.sh update (if this runs and does not produce any errors then you're golden. if you get errors, then start at the beginning and try again.)

if all goes according to plan then
rm dvswitch.old 


Re: radioid.net URL update in dvswitch.sh

k7wby@...
 

don't forget to chmod +x dvswitch.sh

2521 - 2540 of 9774