[arm-allstar] Custom Functions not Working
wa3dsp at gmail.com
Sun Mar 24 14:44:59 EDT 2019
I am not sure exactly what you are doing. The commands that are in the
default rpt.conf that are active and that call scripts do work and do play
the sounds. Are they not working for you? They play to the node indicated
but that node must be on that server and of course you must be listening on
something connected to that node to hear it. Some play to $NODE1 which is
defined as your first node.
If you are writing your own scripts you must use complete paths to any
files out of the search path such as sound files. If you have a script that
does not work pass it on and I can take a look at it. Also is your DTMF
working properly? For instance when you type *A1 on the radio talking to
your node are you seeing those character being decoded in the client? The
additional command in the functions stanza are not all active. Some have
semicolons before them and you would have to remove the semicolon, save the
file and restart asterisk.
As far as the sip stuff goes I have no idea. I doubt very much it is a DNS
issue in general. It could be something at your end. I don't see any
connection between sip being configured and DNS.
On Sun, Mar 24, 2019 at 2:34 PM "Brad Tucker via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:
> Hello and thanks for the great HamVoip software. Ive been fiddling with
> the image for a few weeks now and have run into a couple of quarks I
> thought Id try to get an answer for. I can only beat my head against a wall
> for so long :)
> First Being Custom Functions. I have tried to get scripts to execute via
> DTMF and it just won’t work. Ill uncomment the lines Im looking to use,
> restart Asterisk, and then type them in via my radio. They show up as being
> keyed in the asterisk log file, but there is no audio output of the command
> on the radio, nor do things like rebooting of the Asterisk work. If I copy
> the command to the shell "/usr/local/sbin/sayip.sh 49874” I hear audio auto
> put on my radio. I can manually type"/usr/local/sbin/astres.sh” and
> Asterisk reboots fine.
> A1=cmd,/usr/local/sbin/sayip.sh 49874 ; Say local IP to radio
> ;A3=cmd,/usr/local/sbin/saypublicip.sh 49874 ; Say Public IP to radio
> ;B1=cmd,/usr/local/sbin/halt.sh 49874 ; Halt the system (linux total
> shutdown) ;B3=cmd,/usr/local/sbin/reboot.sh 49874 ; Reboot the system
> B4=cmd,/usr/local/sbin/astres.sh ; Restart Asterisk
> I have also added command to control the Parrot command with no luck. Here
> is my entry. Maybe my syntax is off….
> ; Added by N1KN Parrot 101=cop,55 ; Parrot once if disabled 102=cop,21 ;
> Enable Parrot Mode 103=cop,22 ; Disable Parrot Mode
> My final question is I set up Autopatch via SIP and it works great until I
> do a full reboot. Once the machine is reboot it requires a restart of
> Asterisk to start working for some reason. Seems odd. I believe this to be
> some sort of DNS issue as I get the following logs in my asterisk log file:
> [Mar 24 10:35:36] WARNING acl.c: Unable to lookup 'losangeles.voip.ms'
> [Mar 24 10:35:36] ERROR chan_echolink.c: Failed to resolve Echolink
> server server1.echolink.org [Mar 24 10:35:36] ERROR chan_echolink.c:
> Failed to resolve Echolink server server1.echolink.org [Mar 24 10:35:36]
> ERROR chan_echolink.c: Unable to resolve name for directory server
> server1.echolink.org [Mar 24 10:35:36] WARNING chan_sip.c: No such
> host: losangeles.voip.ms [Mar 24 10:35:36] WARNING chan_sip.c:
> Probably a DNS error for registration to XXXXXX at losangeles.voip.ms,
> trying REGISTER again (after 20 seconds) [Mar 24 10:35:36] NOTICE
> chan_simpleusb.c: Loaded parameters from simpleusb_tune_usb.conf for device
> usb . [Mar 24 10:35:56] NOTICE chan_sip.c: -- Registration for '
> XXXXXX at losangeles.voip.ms' timed out, trying again (Attempt #1) [Mar 24
> 10:36:26] NOTICE dnsmgr.c: host 'register.allstarlink.org' changed
> from 0.0.0.0 to 18.104.22.168 [Mar 24 10:40:24] NOTICE dnsmgr.c:
> Managed DNS entries will be refreshed every 300 seconds.
> At some point after a reboot the machine begins resolving names and things
> like echolink then begin to work, however a successful registration to the
> SIP server does not.
> Any help would be greatly appreciated. Thanks again for the great img
> file. Ive been having a blast with it! Brad N1KN
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
More information about the ARM-allstar