<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="" face="Tahoma">set duplex=1  in rpt.conf<br id="FontBreak"></font><br><br><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><hr id="stopSpelling">Date: Tue, 8 Jul 2014 06:58:27 -0600<br>Subject: Re: [App_rpt-users] Macro Help<br>From: electricity440@gmail.com<br>To: doug@crompton.com<br><br><div dir="ltr">I just realized that no audio will play when Duplex=0. Telemetry works, but any system audio does not work. Is there a way to fix this?</div><div class="ecxgmail_extra"><br><br><div class="ecxgmail_quote">On Mon, Jul 7, 2014 at 10:43 PM, Doug Crompton <span dir="ltr"><<a href="mailto:doug@crompton.com" target="_blank">doug@crompton.com</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr"><font face="Tahoma">First of all there is a way to do that automatically. Put a sound file in <br><br>/var/lib/asterisk/sounds/rpt/nodenames/<br><br>such as   27225.ulaw   <br><br>That file would play when you connected to node 27225.<br>
<br>There are already some sample files in there and some groups like the WAN system have file sets you can install for many of their nodes.<br><br>To just play a sound file locally when you type a DTMF sequence do the following.... <br>
<br>In the functions section of your rpt.conf file add the DTMF sequence. Note the DTMF sequence must not conflict with any other commands.<br><br>985=localplay,/tmp/some-sound-file<br></font><br><font face="Tahoma">This would play the file when you DTMF 985. Note that you do NOT put the extent on the sound file name. No ulaw, gsm etc.  and the file must comply with the requirements for playing - sample rate, etc.</font><font face="Tahoma"><br>
</font><font face="Tahoma"><br></font><font face="Tahoma">Another way to execute macro commands and a way I usually employ because it is much more flexible is </font><font face="Tahoma">to use bash scripts in the system and call them to do things.</font><font face="Tahoma"> The scripts could also be called from a system cron job setup using crontab.<br>
</font><font face="Tahoma"><br></font><font face="Tahoma">985=cmd,/tmp/some-script.sh</font><font face="Tahoma"><br></font><font face="Tahoma"><br></font><font face="Tahoma">The script could be </font><font face="Tahoma"><br>
</font><font face="Tahoma"><br></font><font face="Tahoma">#! /bin/bash</font><font face="Tahoma"><br></font><font face="Tahoma">/usr/sbin/asterisk -rx "rpt fun node *327133"</font><font face="Tahoma"><br></font><font face="Tahoma">/usr/sbin/asterisk -rx "rpt localplay node some-sound-file"</font><br>
<br><font face="Tahoma">Replace node with your node number</font><font face="Tahoma"><br></font><font face="Tahoma"><br></font><font face="Tahoma">This would connect your node to node 27133 and play the specified sound file locally.</font><br>
<br><font face="Tahoma">These scripts could go anywhere on the system but I recommend creating a directory under /etc/asterisk - call it local or your call letters or whatever you want and put your local files there. Then if you backup the asterisk directory your local files will be backed up also. <br>
<br>Remember you have to make a script you create executable for it to work -  chmod 750 filename</font><br><br><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"><a href="http://www.crompton.com/hamradio" target="_blank">http://www.crompton.com/hamradio</a></font></b><font style="font-size:16pt;" size="4"><br></font><br><br><div><hr>Date: Mon, 7 Jul 2014 16:14:58 -0600<br>
From: <a href="mailto:electricity440@gmail.com" target="_blank">electricity440@gmail.com</a><br>To: <a href="mailto:app_rpt-users@ohnosec.org" target="_blank">app_rpt-users@ohnosec.org</a><br>Subject: [App_rpt-users] Macro Help<div>
<div class="h5"><br><br><div dir="ltr">Im still a bit confused on how to use macros. So lets say I want to execute a command when the DTMF is dialed, lets say just a simple localplay<div><br></div><div>How would I implement that command into a DTMF sequence so I could save it as part of my macro. </div>

<div><br></div><div>Lets say I wanted to create a macro to connect to the node 28298 and play the audio file. How would I implement the localplay command in the macros?</div><div><br></div><div>[mymacros]<br></div><div><br>

</div><div>1= (localplaycommandHere) *328298</div><div><div><br></div><div><br></div><div>73</div>-- <br><div dir="ltr"><font color="#38761d" face="arial narrow, sans-serif">Skyler Fennell</font><div><font color="#38761d" face="arial narrow, sans-serif"><a href="http://amsatnet.info" target="_blank">amsatnet.info</a></font></div>

<div><font color="#38761d" face="arial narrow, sans-serif">KDØWHB</font></div><div><font color="#38761d" face="arial narrow, sans-serif"><a href="mailto:electricity440@gmail.com" target="_blank">electricity440@gmail.com</a></font></div>

</div>
</div></div>
<br></div></div>_______________________________________________
App_rpt-users mailing list
<a href="mailto:App_rpt-users@ohnosec.org" target="_blank">App_rpt-users@ohnosec.org</a>
<a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a>

To unsubscribe from this list please visit <a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a> and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.</div>                                          </div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font color="#38761d" face="arial narrow, sans-serif">Skyler Fennell</font><div><font color="#38761d" face="arial narrow, sans-serif"><a href="http://amsatnet.info" target="_blank">amsatnet.info</a></font></div>
<div><font color="#38761d" face="arial narrow, sans-serif">KDØWHB</font></div><div><font color="#38761d" face="arial narrow, sans-serif"><a href="mailto:electricity440@gmail.com" target="_blank">electricity440@gmail.com</a></font></div>
</div>
</div></div>                                          </div></body>
</html>