[arm-allstar] Custom Functions not Working
Doug Crompton
wa3dsp at gmail.com
Sun Mar 24 16:34:14 EDT 2019
Brad,
Good to hear that the delay worked.
On the commands...
*A1 definitely works. Did you try /usr/local/sbin/sayip.sh 49874
as does *B4 - this command does not return any voice except maybe your ID
*882 for autosky as you have it set does not return anything. It simply
updates autosky. You do not need to add this as a command as autosky should
be updated every 4 minutes in a cron command.
101,102,103 are NOT valid DTMF - You can't use DTMF leadin characters that
are used by other functions. *1 is
a disconnect.
For instance if you use *82 which we do you cannot use *82x
You used *882 so this means you can use *880 through *889 or even *88A
through D.
If you are going to add commands I would stay in the 84x-89x range. You
can also use A-D also so 8Ax, 8BX, 8CX, and 8DX would also work.
*73 Doug*
*WA3DSP*
*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
On Sun, Mar 24, 2019 at 4:06 PM "Brad Tucker via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:
> Hello Doug,
>
> These are all examples of commands that DO NOT work:
> A1=cmd,/usr/local/sbin/sayip.sh 49874
> B4=cmd,/usr/local/sbin/astres.sh
> 101=cop,55
> 102=cop,21
> 103=cop,22
> 882=cmd,/usr/local/bin/AUTOSKY/AutoSky
>
>
> Here here a couple that DO work:
> 880=cmd,/usr/local/bin/AUTOSKY/AutoSky.OFF
> 881=cmd,/usr/local/bin/AUTOSKY/AutoSky.ON
>
> I will try the delay that you wrote about and reboot back soon.
>
> Thanks, Brad Tucker
> On Sun, Mar 24, 2019 at 12:27 PM, Brad Tucker <brad at n1kn.com> wrote:
> Thanks for your thoughts Doug. Appreciate the comeback on a Sunday.
> I have removed the semicolons from the rpt.conf file and restarted
> asterisk. The original uncommented commands all work. However if I try some
> of the commented ones. Specifically the ones that utilize the “cmd” and
> “cop” commands they do not work. My DTMF is working properly according to
> the asterisk log file. It is decoding the proper DTMF. I am not writing
> custom scripts, just trying to use the ones included in the image. If I
> execute the commands via the shell they all work fine, just not with DTMF.
> As far as the autopatch goes. Im not sure why a reboot kills the sip
> connection. I saw another user post something on the boards about it
> without a resolution either. His fix was to use a IP address instead of
> domain name and that was a temporary solution for him. This, along with the
> previous log file leads me to believe the pi doesn’t have DNS services
> available at boot but then come on later down the line. Just a hunch …
> Any other thoughts on either issue? Thanks
> Brad N1KN
>
> On Sun, Mar 24, 2019 at 11:07 AM, Brad Tucker <brad at n1kn.com> 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[497] acl.c: Unable to lookup 'losangeles.voip.ms'
> [Mar 24 10:35:36] ERROR[643] chan_echolink.c: Failed to resolve Echolink
> server server1.echolink.org [Mar 24 10:35:36] ERROR[641] chan_echolink.c:
> Failed to resolve Echolink server server1.echolink.org [Mar 24 10:35:36]
> ERROR[643] chan_echolink.c: Unable to resolve name for directory server
> server1.echolink.org [Mar 24 10:35:36] WARNING[628] chan_sip.c: No such
> host: losangeles.voip.ms [Mar 24 10:35:36] WARNING[628] 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[649]
> chan_simpleusb.c: Loaded parameters from simpleusb_tune_usb.conf for device
> usb . [Mar 24 10:35:56] NOTICE[628] chan_sip.c: -- Registration for '
> XXXXXX at losangeles.voip.ms' timed out, trying again (Attempt #1) [Mar 24
> 10:36:26] NOTICE[629] dnsmgr.c: host 'register.allstarlink.org' changed
> from 0.0.0.0 to 44.72.21.13 [Mar 24 10:40:24] NOTICE[1964] 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
> 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