<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>Hi <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>I’m trying to set up Allmon2 on my Raspberry pi web server. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-fareast-language:EN-US'>I have downloaded the latest files from </span><span style='font-family:"Calibri","sans-serif";color:black'><a href="https://github.com/tsawyer/allmon2">https://github.com/tsawyer/allmon2</a> and I think I have edited the files accordingly <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>I can access Allmon via my browser but it will not allow me to log on<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>I have set the Allmon.ini.php to look to the node (on a BBB) for the manager.conf <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>I have checked and rechecked the Allmon ini.php file and the manager.conf files that many times I can almost recite them from memory<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'> <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>I’m probably doing something simple but if someone can point me in the right direction I would be grateful<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>Regards<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>Ken<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:black'>G0LCE</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";mso-fareast-language:EN-US'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> arm-allstar-bounces@hamvoip.org [mailto:arm-allstar-bounces@hamvoip.org] <b>On Behalf Of </b>Doug Crompton<br><b>Sent:</b> 02 January 2016 04:12<br><b>To:</b> ARM Allstar<br><b>Subject:</b> Re: [arm-allstar] scripting - last dtmf digit received in client display<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-family:"Tahoma","sans-serif";color:black'>Neil,<br><br> See my DTMF digit passing in autopatch howto. I think that is a more concise answer to this question you had.<br id=FontBreak></span><span style='font-family:"Calibri","sans-serif"'><br></span><b><span style='font-size:16.0pt;font-family:"Calibri","sans-serif"'>73 Doug<br>WA3DSP<br><a href="http://www.crompton.com/hamradio">http://www.crompton.com/hamradio</a></span></b><span style='font-size:16.0pt;font-family:"Calibri","sans-serif"'><br><br></span><span style='font-family:"Calibri","sans-serif"'><o:p></o:p></span></p><div><div class=MsoNormal align=center style='text-align:center'><span style='font-family:"Calibri","sans-serif"'><hr size=2 width="100%" align=center id=stopSpelling></span></div><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-family:"Calibri","sans-serif"'>From: <a href="mailto:k8it@cac.net">k8it@cac.net</a><br>To: <a href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br>Date: Tue, 8 Dec 2015 17:11:32 -0500<br>Subject: Re: [arm-allstar] scripting - last dtmf digit received in client display<o:p></o:p></span></p><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'>Doug<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'>THANK YOU<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'>You have just opened the door to many script possibilities. You should write the book<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'>Scripting in Asterisk"<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'>Thanks again and I will let you know my results in a week or so<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'> <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'>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<o:p></o:p></span></p></div><div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><o:p> </o:p></span></p></div><div><div><p class=MsoNormal style='background:whitesmoke'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:doug@crompton.com" title="doug@crompton.com">Doug Crompton</a> <o:p></o:p></span></p></div><div><p class=MsoNormal style='background:whitesmoke'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Sent:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Tuesday, December 08, 2015 4:22 PM<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:whitesmoke'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>To:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:arm-allstar@hamvoip.org" title="arm-allstar@hamvoip.org">ARM Allstar</a> <o:p></o:p></span></p></div><div><p class=MsoNormal style='background:whitesmoke'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Subject:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Re: [arm-allstar] scripting - last dtmf digit received in client display<o:p></o:p></span></p></div></div></div><div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-family:"Tahoma","sans-serif";color:black'>Neil,<br><br> A couple of more points on my last message. You should comment or delete the line that plays - "please enter the" It is redundant the digits have already been passed. With that line removed if you enter *61114300 it will playback - Frequency 14300.<br><br>You could enter a line after the SayDigits line like this -<br><br>exten => _1xxxxx,n,Playback(megahertz)<br><br>Then it would say - Frequency 14300 megahertz<br><br>hertz, kilohertz, and gigahertz are also available.<br><br>The reason to enter the second "1" - 611 - is that it points it to the first context. In that way you can have 10 sections 0-9 or *610 thru *619 with parameters after that. Each section could do something else. If you wanted more you could add a third digit. Each context could have as many DTMF characters passed to it as desire or it could be none if none are needed.<br><br>Asterisk can make system calls so anything that would run under Linux can be executed and parameters can be passed. Here is an example of how I call x10 control from my phone -<br><br>exten => _1.,1,System(/usr/local/bin/x10 on ${EXTEN:1})<br><br>In this case I execute the x10 program in /usr/local/bin and pass it the parameters "on" and one digit of the extension.<br><br>So if you wanted to pass the frequency to hamlib (I don't know hamlib parameters so this is JUST and example)<br><br>exten => _1.,1,System(/directory-location/hamlib <freq-command> ${EXTEN})<br><br>The digits can be formatted either in the extensions file with asterisk commands or sent to an external script for formatting. <br><br>Also note that any playback in asterisk would be global. That is if you are connected to other nodes they would hear "Frequency 14300" There are ways to get around this by using system calls either in the dial plan or in a script that directly calls asterisk and executes rpt commands. You can execute rpt commands from the dialplan but there is no SayDigit command in Allstar so you would have to use a script to say the individual digits. An example is in the script that says the IP address which calls speaktext.sh. If this is an issue then you could go to the extra trouble but if not it would greatly simplify things.<br id=ecxFontBreak></span><span style='font-family:"Calibri","sans-serif"'><br></span><span style='font-family:"Tahoma","sans-serif"'>While the example I show uses the current default *61 to enter the patch you could leave that line intact if you are using it to actually do patch things and enter a new line with the same parameter except with the "context=" changed and a different function code defined. So as an example entering -<br><br>871=autopatchup,context=command_radio,noct=1,farenddisconnect=1,dialtime=20000,quiet=1 <br><br>and leaving the 61 function alone would mean that you would enter<br><br>*8711xxxxx to enter a five digit frequency. Of course the number of frequency digits could be any lenght defined by the x's indicating a digit.<br></span><span style='font-family:"Calibri","sans-serif"'><br></span><b><span style='font-size:16.0pt;font-family:"Calibri","sans-serif"'>73 Doug<br>WA3DSP<br><a href="http://www.crompton.com/hamradio">http://www.crompton.com/hamradio</a></span></b><span style='font-size:16.0pt;font-family:"Calibri","sans-serif"'><br><br></span><span style='font-family:"Calibri","sans-serif"'><o:p></o:p></span></p><div><div class=MsoNormal align=center style='text-align:center'><span style='font-family:"Calibri","sans-serif"'><hr size=2 width="100%" align=center id=ecxstopSpelling></span></div><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-family:"Calibri","sans-serif"'>From: <a href="mailto:doug@crompton.com">doug@crompton.com</a><br>To: <a href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br>Date: Tue, 8 Dec 2015 13:46:44 -0500<br>Subject: Re: [arm-allstar] scripting - last dtmf digit received in client display<o:p></o:p></span></p><div><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-family:"Tahoma","sans-serif";color:black'>Neil,<br><br> OK here is a way to do this at least here are the clues to do it. I have not done it completely for you but what I show here does work.<br><br>First in rpt.conf find the phone patch function - 61<br><br>change the context= to context=command_radio<br><br>then in extensions.conf add the following context at the end -<br><br>[command_radio]<br>exten => _1xxxxx,1,Playback(please-enter-the)<br>exten => _1xxxxx,n,Playback(frequency)<br>exten => _1xxxxx,n,SayDigits(${EXTEN})<br>exten => _1xxxxx,n,Wait(2)<br>exten => _1xxxxx,n,Hangup()<br><br>You need to understand asterisk dial plans in order to understand this but basically the way this is setup if you enter at the radio *611xxxxx the last 5 digits will be passed as the EXTEN variable in Asterisk. At that point you could do whatever you wanted with it - like pass to a script that sent it to hamlib for execution. Of course the number of digits could be changed and other functions could be added.<br><br>When changing either file you need to either reload then in the client or restart Allstar.<br><br></span><span style='font-family:"Tahoma","sans-serif"'>The Asterisk diaplan is very powerful but you need to hone up on the commands and syntax!!!<br><br>This is the (more) right way to do this rather than adding stuff to Allstar.<br></span><span style='font-family:"Calibri","sans-serif"'><br></span><b><span style='font-size:16.0pt;font-family:"Calibri","sans-serif"'>73 Doug<br>WA3DSP<br><a href="http://www.crompton.com/hamradio">http://www.crompton.com/hamradio</a></span></b><span style='font-size:16.0pt;font-family:"Calibri","sans-serif"'><br><br></span><span style='font-family:"Calibri","sans-serif"'><o:p></o:p></span></p></div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'><br>_______________________________________________ arm-allstar mailing list <a href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a> <a href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a> Visit the BBB and RPi2 web page - <a href="http://hamvoip.org">http://hamvoip.org</a><o:p></o:p></span></p></div></div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span style='font-family:"Calibri","sans-serif"'><hr size=2 width="100%" align=center></span></div><p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'><br>_______________________________________________<br><br>arm-allstar mailing list<br><a href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br><a href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a><br><br>Visit the BBB and RPi2 web page - <a href="http://hamvoip.org">http://hamvoip.org</a> <br>_______________________________________________ arm-allstar mailing list <a href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a> <a href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a> Visit the BBB and RPi2 web page - <a href="http://hamvoip.org">http://hamvoip.org</a><o:p></o:p></span></p></div></div></div></body></html>