[arm-allstar] Two Questions ... Additional Information

Doug Crompton doug at crompton.com
Thu Oct 22 16:00:53 EST 2015


Roland,

 OK now I understand. Here is how I do it....

In the node (beginning) section of rpt.conf add this....

startup_macro = *A900 
Down in the functions section add this.......

[functions]

A900=cmd,/etc/asterisk/local/reconnect_local

The 'functions' name would probably have your node number after it like  [functions12345]
Also the A900 can be any valid DTMF command. I recommend A, B, C ,D be used as it is very unlikely anyone would type that.  It could be A1D5 etc.  This sequence is also a shortcut to the connect for you to type as DTMF input should you want to.

OK now create a file in /etc/asterisk/local  - I called it reconnect_local but you can call it something else. Just remember to change the name in the function statement. Here i what that file would look like -

#! /bin/bash

# Connect at start
/usr/bin/asterisk -rx "rpt fun <yournode> *73<connect_to_node>"


Change <yournode> to the node you are executing this from without the <> and connect to node to the node you want to connect to again without the <>    I use *73 as that is permanant connect and would attempt a reconnect if the circuit or distant node went away.

When you create this file make sure you make it executable -

chmod 750 reconnect_local

Or whatever the filename you use it. You can add other connects in this file if desired.

There are other ways to do it but I like to use Linux scripts. Sldo whenever you change anything in rpt ,conf or any of the config files restart asterisk for it to take effect. At the Linux prompt -   

astres.sh

73 Doug
WA3DSP
http://www.crompton.com/hamradio


Date: Thu, 22 Oct 2015 08:13:21 -1000
From: rolandksmith at gmail.com
To: arm-allstar at hamvoip.org
Subject: Re: [arm-allstar] Two Questions ... Additional Information

In response to my second question, which was:
2: I understand how to run a command from the command line to connect ordisconnect a node. The documentation isn't clear to me how to make thatconnection within rpt.conf. What would I enter and into which stanza toconnect to node 29277?
Doug Crompton replied:
On your second question I an not clear on what you want to do. There are not connect commands in rpt.conf other than those created by a macro or function based on DTMF commands or a  startup macro which would perform functions on startup.Perhaps you mean using the client to connect?asterisk -rvvvCLI>rpt fun <yournode> *329277This would connect you by command line. I know I am not getting exactly what you want to do so perhaps you could be more specific.
The additional information:
What I want to do is have node 29277 connect "automatically" whenever Asterisk starts. Perhaps running a macro at startup would do what I want to do. (if that's the better option, some info on how to set up a macro that's run at startup would be very helpful!).
The reason is that occasionally the node has to be restarted, or is restarted due to a power glitch. That means the connection into the Hawaiian-Mainland Net goes away until I can manually make the connection. Since this connection is always supposed to be there, I'd like it to be made upon startup.
Thanks again for your help....
And any additional information on my Parrot mode question from anyone would be very helpful.
Why would I use parrot mode? I'd like to map out the coverage for my node using both an HT as well as a mobile device. A new node is going to come up in a neighboring town and there probably will be some overlap in coverage, so a coverage map of both nodes would be very helpful. Using Parrot mode (while disconnected and running as a simplex repeater) I can transmit from various places and hear back what the system heard. Once the coverage map is completed, I wouldn't have much additional use for parrot mode.
Thanks!--
Elder Roland Smith K7OJLLaie Hawaii Temple Visitors' Center
Blog: www.rnsmith.comCell: 208-406-8449


_______________________________________________

arm-allstar mailing list
arm-allstar at hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar

Visit the BBB and RPi2 web page - http://hamvoip.org 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hamvoip.org/pipermail/arm-allstar/attachments/20151022/6dffbd41/attachment.html>


More information about the arm-allstar mailing list