[arm-allstar] astdb.txt daily build question

Doug Crompton wa3dsp at gmail.com
Fri Aug 17 23:26:53 EDT 2018


Brad,

 I thought I had answered this before but maybe not.   astdb.pl is located
in /usr/local/sbin    It is a script that you could modify but understand
it is not a protected script. If you want to modify it in any way you will
need to copy it to a new file name. This file in hamvoip is called by a
cron - which can be viewed with the command  cronttab -l   Here is how it
reads -

15 03 * * * cd /usr/local/sbin; ./astdb.php cron

It simply calls the update everyday at 3:15 AM.  The "cron" parameter also
tells the script to stagger the actual downloading of the data randomly.
The script downloads the data and also the private nodes  info located in
/etc/asterisk/local/privatenodes.txt, sorts it and writes it to
/var/log/asterisk/astdb.txt

Is there something else you need to know?


*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*





On Fri, Aug 17, 2018 at 11:16 PM, "Brad Trogdon via arm-allstar" <
arm-allstar at hamvoip.org> wrote:

>  Thanks Doug,
>
> I have a node running 0.325 that I would like to replace with latest
> HamVoip.  I have all components working with the exception of Node List
> updating.
>
> HamVoIP retrieves its node list accessing AllStar db URL and I am trying to
> identify this URL in the code of my working NODE so I can replace  "
> https://allstarlink.org/cgi-bin/allmondb.pl" with "<Other Network
> details>"
>
> End game is so my list contains Private Nodes and the <Other Networks
> nodes> and not AllStar Nodes.  Want to ensure that my node does not allow
> folks to connect Non-HAM nodes with HAM nodes.
>
> Hope this helps clarify the ask and why I am asking.
>
> -Brad
> ~~
>
> On Thu, Aug 16, 2018 at 1:00 PM, <arm-allstar-request at hamvoip.org> wrote:
> >
> > >
> > > ----------------------------------------------------------------------
> > >
> > > Message: 1
> > > Date: Thu, 16 Aug 2018 12:40:06 -0400
> > > From: Doug Crompton <wa3dsp at gmail.com>
> > > To: ARM Allstar <arm-allstar at hamvoip.org>
> > > Subject: Re: [arm-allstar] astdb.txt daily build question
> > > Message-ID:
> > >         <CAMp6vss+LyOMSUX43MqmYBkrg7nu0Kw7T0fZ2-
> > > Zo6g2iLuainA at mail.gmail.com>
> > > Content-Type: text/plain; charset="UTF-8"
> > >
> > > Brad,
> > >
> > >  I am having a hard time understanding what you are asking? hamvoip
> uses
> > > astdb.php located in /usr/local/sbin which downloads the data, combines
> > it
> > > with private information from /etc/asterisk/local/privatenodes.txt and
> > > puts
> > > it in /var/log/asterisk   This is accomplished by a cron once a day. If
> > you
> > > want an updated file you could manually run astdb.php  There is nothing
> > > specific about the hamvoip code other than where it stores and gets the
> > > files. This is defined in astdb.php. There is also code in there to
> > stagger
> > > the download to avoid the cron hitting all at once. This data should
> > always
> > > be stored in a tmpfilesystem directory so it does not hammer the SD
> card.
> > >
> > >
> > > *73 Doug*
> > >
> > > *WA3DSP*
> > >
> > > *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
> > >
> > >
> > > On Thu, Aug 16, 2018 at 12:22 PM, "Brad Trogdon via arm-allstar" <
> > > arm-allstar at hamvoip.org> wrote:
> > >
> > > > This is directed to anyone that may remember the process in v 0.325
> of
> > > > app_rpt or can direct me to  the location of the code that builds the
> > > Nodes
> > > > list in the older version.
> > > >
> > > > My scenario is using the recent builds of HamVoIP for linking a
> system
> > > that
> > > > is not associated with AllStar.  So need Nodes list from another
> > source.
> > > >
> > > > My goal is to identify where the 0.325 version that is running
> obtains
> > > its
> > > > list from so I can redirect the newer HamVoIP version and not 100%
> rely
> > > on
> > > > my Private list.  Would love to have all nodes available as they
> join.
> > > >
> > > > HamVoIP uses CRON job with Perl located /usr/local/sbin/astdb.php
> > > whereas
> > > > v 0.325 does not.
> > > >
> > > > Thanks for anything anyone can offer.
> > > >
> > > > Brad
> > > > W4INT
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
>


More information about the arm-allstar mailing list