[arm-allstar] Schedule issue with Allstar Pi
Doug Crompton
wa3dsp at gmail.com
Tue Nov 8 14:34:01 EST 2016
Jeff,
I put out programming info yesterday on this forum about using a cron job
to perform commands at specific times. See the prior message. Here is is a
brief refresher...
Create a script file. Call it whatever you want. Put it in
/etc/asterisk/local. Make it executable
'chmod 750 filename'
The script would look like this. Go to the directory and use 'nano
filename' to create -
#!/bin/bash
# connect to some echolink node
/usr/sbin/asterisk -rx "rpt fun <your_node> *33<echo_link_node>"
# end script
Do not enter the < or >, replace with node number, Leave quotes
ex: /usr/sbin/asterisk -rx "rpt fun 40000 *33147090"
See rules for echolink node numbers -
http://ohnosec.org/drupal/node/56
type the script name at the Linux prompt to execute manually and test. Use
the full pathname - /etc/asterisk/local/given_filename
Typical cron entry - enter with 'crontab -e' to edit, 'crontab -l' to list
50 13 * * 3 /etc/asterisk/local/some_echolink_connect
Assuming the above script is called some_echolink_connect (you would name
it your choice) this would run the script on Wednesday (third day of week)
at 13:50 hours - 1:50 PM.
Goggle cron for more info.
Likewise another script to disconnect and appropriate cron entry.
*73 Doug*
*WA3DSP*
*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
On Tue, Nov 8, 2016 at 10:58 AM, Jeff Savasta via arm-allstar <
arm-allstar at hamvoip.org> wrote:
> Hello All,
>
> I have a slight schedule issue using the schedule scripting in the Pi.
>
> I made a macro to connect to a certain Echolink conference. For arguments
> sake its *522. It works fine when I bring it up with the DTMF pad on the
> HT.
>
> I then scheduled the macro via the scheduler in rpt.conf to connect to a
> specific Echolink node on a certain date and time every week. The entry is
>
> 22=57 19 * * 1
>
> This in fact tells the Pi to connect every Monday night at 1957 hrs via
> that macro.
>
> The problem is that I hear the Pi attempt the connect as Allison announces
> it but instead of saying connected, it says connection failed. If I connect
> via Allmon or DTMF, it works fine???
>
> My buddy advised that he had a similar problem and had to schedule a cron
> job to successfully execute the command? Anybody know why that would be the
> case and if it is, what is the scheduler good for?
>
> Also, if I need to use a cron job to do this, where can i find programming
> information to do this? I am unfamiliar with it?
>
> Thanks all,
>
> Jeff
> _______________________________________________
>
> 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