[arm-allstar] Custom Functions not Working
brad at n1kn.com
Sun Mar 24 16:05:20 EDT 2019
Adding the delay fixes all DNS errors in the asterisk log file and SIP now works with our a reboot :)
On the sip issue you can delay boot of Asterisk Allstar in the
# defines the start delay prior to staring asterisk
On Sun, Mar 24, 2019 at 12:58 PM, Brad Tucker <brad at n1kn.com> wrote:
These are all examples of commands that DO NOT work:
Here here a couple that DO work:
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
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 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 184.108.40.206 [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
More information about the ARM-allstar