<div dir="ltr">I agree with Buddy, the startup macro can be any function or functions, not just other macros.<div>I just tested this in various combinations and all worked.</div><div>The most likely reason your connect startup macro doesn't work will be because one or the other node does not know about the other one yet.</div>
<div>You can overcome this by manually configuring each node in the [nodes] stanza. Do this on both systems, the one connecting and the one being connected to. That way they can connect to each other even if they do not have internet connectivity to the allstarlink system. Naturally this will not work if they need the Internet to connect to each other and they use DHCP and their address might change.</div>
<div>Chuck WB9UUS</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Nov 3, 2013 at 7:18 AM, REDBUTTON_CTRL <span dir="ltr"><<a href="mailto:jrorke@cogeco.ca" target="_blank">jrorke@cogeco.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Well there you go! Learned something new.<br>
<br>
I just assumed that a start up macro would only execute macros and not normal connection commands.<br>
<br>
RQ<div class="HOEnZb"><div class="h5"><br>
<br>
On 11/3/2013 8:01 AM, Buddy Brannan wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This is not correct.<br>
<br>
The startup macro really can be any string of commands.<br>
<br>
The reason that your macro is probably not connecting at startup is that your /var/lib/asterisk/rpt_<u></u>extnodelist file hasn’t yet populated, or in any case, asterisk doesn’t yet know where the nodes are in order to connect to them.<br>
--<br>
Buddy Brannan, KB5ELV - Erie, PA<br>
Phone: <a href="tel:%28814%29%20860-3194" value="+18148603194" target="_blank">(814) 860-3194</a> or 888-75-BUDDY<br>
<br>
<br>
<br>
On Nov 3, 2013, at 7:39 AM, REDBUTTON_CTRL<<a href="mailto:jrorke@cogeco.ca" target="_blank">jrorke@cogeco.<u></u>ca</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The start up macro executes a macro not a regular "rpt fun" command.<br>
<br>
The start up macro should be like this:<br>
<br>
startup_macro=*5300<br>
<br>
The nomncalyture is *[macro prefix](Macro)<br>
In the case above I have a macro defined in the macro stanza that is 300.<br>
<br>
[macro1234]<br>
<br>
300 = *911235# ; Macro 300 perm link 1235 to 1234 perm link prefix defined as *91<br>
<br>
I have my macro prefix defined as 5 from the this statement in the functions stanza:<br>
<br>
[functions2249]<br>
<br>
5=macro,1 ; Enable macro prefix = 5<br>
<br>
The above example does work.<br>
<br>
I agree the ohnosec example is not very clear. I'm thinking here the macro prefix is 953 and the macros are 2011 and 2000 , not actual node numbers, just to confuse you.<br>
<br>
Jon VA3RQ<br>
<br>
<br>
<br>
On 11/2/2013 11:20 PM, Geoff wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
According to <a href="http://ohnosec.org/drupal/node/143" target="_blank">http://ohnosec.org/drupal/<u></u>node/143</a>,<br>
<br>
********************<br>
Startup Macro<br>
Additionally, there is one macro type which can executed once on system startup. Each node can have one startup macro defined in its node stanza.<br>
To define the startup macro, place the something similar to this in your node stanza:<br>
<br>
startup_macro=*9532011*9532000<br>
This example executes two DTMF commands to establish two links at startup. The startup macro does not require a trailing # like a function macro.<br>
********************<br>
<br>
Let's be honest... have you ever entered at the CLI> prompt the command of<br>
CLI> rpt fun [your-node] *3[their-node] {enter}<br>
and have it fail? (Note the lack of #?)<br>
<br>
Either way, it works for me... except when the command is entered into a node stanza...<br>
<br>
ie:<br>
<br>
[1776] (*) ; Change this to your assigned node number<br>
rxchannel=Radio/usb1776 ; Rx audio/signalling channel<br>
duplex=1<br>
linktolink=yes<br>
erxgain=-3 ; Echolink receive gain adjustment ; Note: Gain is in db-volts<br>
etxgain=3 ; Echolink transmit gain adjustment ; Note: Gain is in db-volts (20logVI/VO)<br>
scheduler=schedule<br>
morse=morse<br>
macro=macro<br>
functions=functions ; Repeater Function Table<br>
phone_functions=functions ; Repeater Function Table<br>
link_functions=functions ; Link Function Table<br>
telemetry=telemetry ; Telemetry descriptions<br>
wait_times=wait-times ; Wait times<br>
context = radio ; dialing context for phone<br>
callerid = "Repeater"<0000000000> ; callerid for phone calls<br>
idrecording = rpt/repeater_id ; id recording or morse string<br>
accountcode=RADIO ; account code (optional)<br>
hangtime=1000 ; squelch tail hang time (in ms) (optional)<br>
althangtime=4000 ; longer squelch tail<br>
totime=170000 ; transmit time-out time (in ms) (optional)<br>
idtime=540000 ; id interval time (in ms) (optional)<br>
politeid=30000 ; time in milliseconds before ID timer<br>
; idtalkover=|i ; Talkover ID (optional) default is none<br>
unlinkedct=ct2 ; unlinked courtesy tone (optional) default is none<br>
remotect=ct3 ; remote linked courtesy tone (indicates a remote is in the list of links)<br>
linkunkeyct=ct8 ; sent when a transmission received over the link unkeys<br>
startup_macro=*3[node-number] ; this crap doesn't work.<br>
<br>
(* = note: this story is true. The actual node number and callsigns were altered to protect the innocent)<br>
<br>
Why doesn't it work, is what I want to know. I tried the command in the [macro1776] stanza - no good.<br>
Re-read and saw where it -had- to be in the 'node' stanza - entered it there and still - no bueno. Que pasa?<br>
<br>
-Geoff<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
App_rpt-users mailing list<br>
<br>
<a href="mailto:App_rpt-users@ohnosec.org" target="_blank">App_rpt-users@ohnosec.org</a><br>
<a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://ohnosec.org/cgi-bin/<u></u>mailman/listinfo/app_rpt-users</a><br>
</blockquote>
______________________________<u></u>_________________<br>
App_rpt-users mailing list<br>
<a href="mailto:App_rpt-users@ohnosec.org" target="_blank">App_rpt-users@ohnosec.org</a><br>
<a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://ohnosec.org/cgi-bin/<u></u>mailman/listinfo/app_rpt-users</a><br>
</blockquote>
<br>
</blockquote>
______________________________<u></u>_________________<br>
App_rpt-users mailing list<br>
<a href="mailto:App_rpt-users@ohnosec.org" target="_blank">App_rpt-users@ohnosec.org</a><br>
<a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://ohnosec.org/cgi-bin/<u></u>mailman/listinfo/app_rpt-users</a><br>
</div></div></blockquote></div><br></div>