<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<STYLE><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></STYLE>
<META name=GENERATOR content="MSHTML 11.00.10240.16445"></HEAD>
<BODY id=MailContainerBody class=hmmessage
style="PADDING-TOP: 15px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px" leftMargin=0
topMargin=0 CanvasTabStop="true" name="Compose message area">
<DIV>Thanks Doug. And yes I agree with using scripts. What I am trying to do is
respond to a users DTMF digits for a remote base application. I now have written
script code using hamlib to control my TMV71A radio. it works good but only has
a few preprogrammed memories based on which macro you use.</DIV>
<DIV>I would like to instead receive three DTMF digits and process them before
passing them to the radio via hamlib. Somehow there is a way!</DIV>
<DIV>If I call a script</DIV>
<DIV>is it possible to call an asterisk function from within the script to
receive three DTMF digits directly to the script for more processing?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks<BR>73 Neil Sablatzky K8IT<BR>Allstar Node 41838
KITLINK<BR>Allstar Node 42087 KITLINK HUB<BR>IRLP Node exp0068<BR>Echolink
K8IT-L<BR>WIRES-X K8IT 11479 Room 21479</DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=doug@crompton.com
href="mailto:doug@crompton.com">Doug Crompton</A> </DIV>
<DIV><B>Sent:</B> Thursday, September 03, 2015 8:53 PM</DIV>
<DIV><B>To:</B> <A title=arm-allstar@hamvoip.org
href="mailto:arm-allstar@hamvoip.org">ARM Allstar</A> </DIV>
<DIV><B>Subject:</B> Re: [arm-allstar] macro question</DIV></DIV></DIV>
<DIV><BR></DIV>
<DIV dir=ltr><FONT color=#000000 face=Tahoma,sans-serif>Neil,<BR><BR> I
don't think you can pass parameters to a macro. There would be no way to test
for vlaues. Why not call a script and pass parameters there. here is an example
from rpt.conf. This is defined in the [functions] section. *A1 would call this
and execute sayip.sh. 27225 is the passed
parameter.<BR><BR>A1=cmd,/usr/local/sbin/sayip.sh 27225 <BR><BR>The in the
sayip.sh script $1 is then defined as 27225. You can have multiple
parameters so if it were -<BR><BR>A1=cmd,/usr/local/sbin/sayip.sh 1 2
3<BR><BR>Then in the script $1 would =1, $2 would = 2, and $3 would
=3.<BR><BR>This yet again shows the power of using scripts over built-in
code.<BR><BR></FONT><B><FONT style="FONT-SIZE: 16pt" size=4>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>> From: k8it@cac.net<BR>> To: arm-allstar@hamvoip.org<BR>> Date:
Thu, 3 Sep 2015 19:00:20 -0400<BR>> Subject: [arm-allstar] macro
question<BR>> <BR>> using a macro say for example<BR>> *52 which can
call a bash script<BR>> How can I pass say the next three DTMF digits to the
script to be processed?<BR>> For example if a user enters *52123 where 123 is
three random dtmf digits <BR>> how can I pass the 123 digits to the bash
script?<BR>> <BR>> Thanks<BR>> 73 Neil Sablatzky K8IT<BR>> Allstar
Node 41838 KITLINK<BR>> Allstar Node 42087 KITLINK HUB<BR>> IRLP Node
exp0068<BR>> Echolink K8IT-L<BR>> WIRES-X K8IT 11479 Room 21479<BR>>
<BR>> <BR>> _______________________________________________<BR>>
<BR>> arm-allstar mailing list<BR>> arm-allstar@hamvoip.org<BR>>
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar<BR>> <BR>>
Visit the BBB and RPi2 web page - http://hamvoip.org<BR>> <BR></DIV></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR><BR>arm-allstar
mailing
list<BR>arm-allstar@hamvoip.org<BR>http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar<BR><BR>Visit
the BBB and RPi2 web page - http://hamvoip.org
<P>
<HR>
<P></P><A></A>
<P align=left avgcert?? color="#000000">No virus found in this
message.<BR>Checked by AVG - <A
href="http://www.avg.com">www.avg.com</A><BR>Version: 2015.0.6125 / Virus
Database: 4409/10570 - Release Date: 09/03/15</P></BODY></HTML>