Converting Allstar Nodes

If you have an Allstar node you are not using, or have one that you are using, but want to join into the VKLink network, it can be done. The first thing that needs to be done is download the Scripts to help you along. These are available from here: http://www.vklink.com.au/experimental/allstar/allstar-vk.zip .

Unzip the allstar-vk.zip file and there is 5 helper scripts included. A brief description:

If you have decided you only want your Allstar node to run on the VK network, several things have to be changed. You will need to Request a Node Number and make the appropriate changes to rpt.conf and extensions.conf. A Main Setup Menu has not been created for an allstar node, as everything is in different locations and I do not have one to play with. You also need to stop the script that downloads the Allstar node list from Allstar. Do this by deleting the /usr/local/etc/rc.updatenodelist file.

Once the required changes have been made to rpt.conf and extensions.conf regarding the node number, these instructions should get you through and onto the system.

  • Edit iax.conf and remove the line that registers the node with allstar.
  • Edit rpt.conf and change the statpost_url= line to:
    statpost_url=https://reporting.vklink.com.au/get_post.php
  • edit the crontab (crontab -e) to run the vknodes-no-allstar.sh script. The cron entry should look like this:
    1 3 * * * /{path-to-script}/vknodes-no-allstar.sh > /dev/null
  • Remove any crontab entries for Allstar.

Your node should be quite happily reporting to the VKLink server now. If you would like to get the node list, manually run the vknodes-no-allstar.sh

Our system allows for Allstar node numbers to be available on the system without any conflicts. So if you would like to run your allstar node on the VK link system, read on:

You have to get your node reporting to the VKLink server. As Allstar uses the same way to do this, the statpost_program= variable in rpt.conf needs to be changed to call a local script, which in turn informs both Allstar and VKLink.

  1. To do this edit the rpt.conf and enter the following:
    statpost_program=/{path-to-script/multipost.sh

It does not matter what the statpost_url= is as the script strips it anyway.

  1. To enable the VK node list download, another crontab needs to be entered:
    5 3 * * * /{path-to-script}/vknodes.sh
  2. A line needs to be appended to the end of the rc.nodeupdates to append the VK Link nodes. Allstar updates its node list every 10 minutes, VK link does it every 24 hours. The file /usr/local/etc/rc.updatenodelist *Apparently on the BBB, the file is located at /etc/rc.updatenodelist* needs to be edited:
    nano /usr/local/etc/rc.updatenodelist
    Scroll through the file to find the following:
    .
    .
    .
    #                       $CP /tmp/rpt_extnodes-temp $FILEPATH/rpt_extnodes-temp
                            $MV -f $FILEPATH/rpt_extnodes-temp $FILEPATH/rpt_extnodes
                    else
                            $CAT /tmp/rpt_extnodes-temp
    .
    .
    .
    There needs to be a line inserted so it looks like:
    .
    .
    .
    #                       $CP /tmp/rpt_extnodes-temp $FILEPATH/rpt_extnodes-temp
                            $MV -f $FILEPATH/rpt_extnodes-temp $FILEPATH/rpt_extnodes
                            cat /var/lib/asterisk/rpt_vknodes >> $FILEPATH/rpt_extnodes
                    else
                            $CAT /tmp/rpt_extnodes-temp
    .
    .
    .

That is it, your All-Star node should appear on the VK List meaning any VK node can connect to it.

As the guys at Allstar have no need for it, whiptail, the program that makes our setup program look cool, is not installed. To use our setup program we need to install whiptail. The new setup script has a built in function to check for whiptail. It will install it if it is not present on your node

Run the allstar-vksetup.sh, put your node number in first, then edit all the settings:

    • Description
    • fqdn
    • port number
    • latitude
    • longitude

This IS required if you run a non standard port or a fqdn, as this information is used by the VKlink server to generate the nodelist everyone gets.

Advanced Stuff | Main page

Menu

Article:

Search: