<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font style="" color="#000000" face="Tahoma,sans-serif">Roland,<br><br> OK now I understand. Here is how I do it....<br><br>In the node (beginning) section of rpt.conf add this....<br><br>startup_macro = *A900 <br id="FontBreak"></font><br><font style="" face="Tahoma,sans-serif">Down in the functions section add this.......</font><font style="" face="Tahoma,sans-serif"><br><br>[functions]<br></font><font style="" face="Tahoma,sans-serif"><br></font><font style="" face="Tahoma,sans-serif">A900=cmd,/etc/asterisk/local/reconnect_local</font><br><font style="" face="Tahoma,sans-serif"><br></font><font style="" face="Tahoma,sans-serif">The 'functions' name would probably have your node number after it like [functions12345]<br>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.<br><br>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 -<br><br>#! /bin/bash<br><br># Connect at start<br>/usr/bin/asterisk -rx "rpt fun <yournode> *73<connect_to_node>"<br><br><br>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.<br><br>When you create this file make sure you make it executable -<br><br>chmod 750 reconnect_local<br><br>Or whatever the filename you use it. You can add other connects in this file if desired.<br><br></font><font style="font-size: 12pt;" size="3"><font style="" face="Tahoma,sans-serif">There are other way</font><font style="" face="Tahoma,sans-serif">s 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 - <br><br>astres.sh<br></font></font><b><font style="font-size: 12pt;" size="3"><br>73 Doug</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">WA3DSP</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">http://www.crompton.com/hamradio</font></b><font style="font-size:16pt;" size="4"><br></font><br><br><div><hr id="stopSpelling">Date: Thu, 22 Oct 2015 08:13:21 -1000<br>From: rolandksmith@gmail.com<br>To: arm-allstar@hamvoip.org<br>Subject: Re: [arm-allstar] Two Questions ... Additional Information<br><br><div dir="ltr">In response to my second question, which was:<div><br></div><div><span style="font-size:12.8px;">2: I understand how to run a command from the command line to connect or</span><br style="font-size:12.8px;"><span style="font-size:12.8px;">disconnect a node. The documentation isn't clear to me how to make that</span><br style="font-size:12.8px;"><span style="font-size:12.8px;">connection within rpt.conf. What would I enter and into which stanza to</span><br style="font-size:12.8px;"><span style="font-size:12.8px;">connect to node 29277?</span></div><div><span style="font-size:12.8px;"><br></span></div><div><span style="font-size:12.8px;">Doug Crompton replied:</span></div><div><span style="font-size:12.8px;"><br></span></div><div><span style="font-size:12.8px;">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.</span><br style="font-size:12.8px;"><br style="font-size:12.8px;"><span style="font-size:12.8px;">Perhaps you mean using the client to connect?</span><br style="font-size:12.8px;"><br style="font-size:12.8px;"><span style="font-size:12.8px;">asterisk -rvvv</span><br style="font-size:12.8px;"><br style="font-size:12.8px;"><span style="font-size:12.8px;">CLI>rpt fun <yournode> *329277</span><br style="font-size:12.8px;"><br style="font-size:12.8px;"><span style="font-size:12.8px;">This 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.</span></div><div><span style="font-size:12.8px;"><br></span></div><div><span style="font-size:12.8px;">The additional information:</span></div><div><span style="font-size:12.8px;"><br></span></div><div><span style="font-size:12.8px;">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!).</span></div><div><span style="font-size:12.8px;"><br></span></div><div><span style="font-size:12.8px;">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.</span></div><div><span style="font-size:12.8px;"><br></span></div><div><span style="font-size:12.8px;">Thanks again for your help....</span></div><div><span style="font-size:12.8px;"><br></span></div><div><span style="font-size:12.8px;">And any additional information on my Parrot mode question from anyone would be very helpful.</span></div><div><span style="font-size:12.8px;"><br></span></div><div><span style="font-size:12.8px;">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.</span></div><div><span style="font-size:12.8px;"><br></span></div><div><span style="font-size:12.8px;">Thanks!<br clear="all"></span><div><div class="ecxgmail_signature"><div dir="ltr"><div>--<br>Elder Roland Smith K7OJL</div><div>Laie Hawaii Temple Visitors' Center<br>Blog: <a href="http://www.rnsmith.com" target="_blank">www.rnsmith.com</a><div>Cell: 208-406-8449</div></div></div></div></div>
</div></div>
<br>_______________________________________________
arm-allstar mailing list
arm-allstar@hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
Visit the BBB and RPi2 web page - http://hamvoip.org</div> </div></body>
</html>