Thanks to Steve, Jim and everyone for being so patient with me! You can all tell that I'm not a programmer by now huh?<div><br></div><div>I've got it cracked now though.</div><div><br></div><div>Now that I understand what I've learned this evening I've also made the macro's work including the startup macro, which works how Steve has described below. Great Stuff!</div>
<div><br></div><div>Also the link activity timer is working well and I've got the sitenorm announcement in the macro too!</div><div><br></div><div>Another day, another thing learned and my node just keeps on getting better thanks to the hard work you guys who write the code are doing, so thanks to you all!</div>
<div><br></div><div>Best wishes all,</div><div><br></div><div>Matt</div><div>G4RKY<br><div><br></div><div><br><br><div class="gmail_quote">2009/5/27  <span dir="ltr"><<a href="mailto:hwstar@rodgers.sdcoxmail.com">hwstar@rodgers.sdcoxmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
><br>
> From: Matt Beasant <<a href="mailto:g4rky@yahoo.co.uk">g4rky@yahoo.co.uk</a>><br>
> Date: 2009/05/26 Tue PM 02:21:09 PDT<br>
> To: Stephen Rodgers <<a href="mailto:hwstar@rodgers.sdcoxmail.com">hwstar@rodgers.sdcoxmail.com</a>><br>
> CC: app_rpt <<a href="mailto:app_rpt-users@qrvc.com">app_rpt-users@qrvc.com</a>><br>
> Subject: DTMF codes to activate function<br>
<div class="im">><br>
> Hi,<br>
><br>
> Just as a heads up to anyone new reading this and learning about app_rpt and<br>
> also as a question to the more experienced node owners out there, I have<br>
> noticed a little niggle with the DTMF tone sequences used to activate<br>
> functions on app_rpt.<br>
><br>
> Here's the scenario:<br>
><br>
> In my rpt.conf I have a function:<br>
><br>
> 94 = cop,something or other<br>
><br>
> All is fine until I try and add a command 941 to do something else.<br>
><br>
> The new code wont work and app_rpt seems to ignore the extra digit on the<br>
> end and just activates the function that is associated with the code 94.<br>
><br>
> I'm not sure if this is really a bug or not but it certainly had me teased<br>
> for a good few hours recently when I was adding some new functions to my<br>
> node.<br>
><br>
> I was expecting code 941 to work but it just wasnt - I was testing a new<br>
> feature which had been added and I wasnt sure if I had busted the feature or<br>
> something else had gone wrong!<br>
><br>
> I changed the code to 95 and all worked as expected!<br>
><br>
> Just something to be aware of really I guess unless its an easy fix for the<br>
> app?<br>
><br>
> Cheers,<br>
><br>
> Matt<br>
> G4RKY<br>
> Node 2250<br>
><br>
><br>
</div>Not! Once a match is found, its over!<br>
<br>
The function decoder will match on the shortest DTMF command first. All digits which follow will be directed to the "method" for further decoding until the method thinks it has enough digits to do something useful. The function method is the numerical value for the class of functions (e.g. COP) as documented in app_rpt.c<br>

<br>
This is how the autopatch, and internet linking commands work with variable length node numbers and phone numbers. (And it is the only way something with a variable number of digits can work).<br>
<br>
To use the function decoder effectively:<br>
<br>
1. Make sure your most used functions are short digit sequences, and your least used functions are long digit sequences.<br>
<br>
2. Make sure your function table does not have any short DTMF functions overriding longer DTMF functions.<br>
<br>
<br>
Steve<br>
WA6ZFT<br>
<div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
App_rpt-users mailing list<br>
<a href="mailto:App_rpt-users@qrvc.com">App_rpt-users@qrvc.com</a><br>
<a href="http://qrvc.com/mailman/listinfo/app_rpt-users" target="_blank">http://qrvc.com/mailman/listinfo/app_rpt-users</a><br>
</div></div></blockquote></div><br></div></div>