<div dir="ltr"><div>I think I've come up with a pretty simple solution.</div><div><br></div><div>Recording is simple. Just add "archivedir=/home/somefolder" to rpt.conf . <br></div><div><br></div><div>The problem was how to start and stop recording. Once you have set an archive directory in rpt.conf it just keeps recording their forever which is not what I needed.<br></div><div><br></div><div>My solution was to set the immutable attribute for the archive directory (chattr +i /home/allstarudio/*). This prevents any files from being modified or created in the archive directory. App.rpt is still trying to put files in the folder but it cannot.<br></div><div><br></div><div>So I made a simple script that removes the immutable attribute from the archive directory, sleeps for 15seconds and then adds the immutable attribute back. This allows any transmission made within that 15 seconds to be saved in the archive directory. <br></div><div><br></div><div>I then defined a custom DTMF function in the function stanza of rpt.conf. When this DTMF tone is dialed the mailbox.sh script will run and any transmission the user starts within the next 15 seconds will be recorded. <br></div><div><br></div><div>Script is copied below. <br></div><div><br></div><div>Anyone is welcome to dial my node and leave a message. Node # 49245 <br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>mailbox.sh<br></div><div><br></div><div>#!/bin/bash<br><br># How to use this script<br><br># You must Uncommnet or add the line "archivedir = /home/allstaraudio" in /etc/asterisk/rpt.conf<br># You must also create the "allstaraudio" directory in your home folder<br># create a custom DTMF macro in functions stanza of rpt.conf that calls this script.<br># example dtmf macro "85=cmd,/home/yourusername/mailbox.sh" <br><br><br>#this sets the app.rpt audio archive directory to immutable<br>chattr -i /home/allstaraudio/*<br><br># this pauses the script for 15 seconds. Any transmission that begins within this 15 seconds will be recorded even if it is longer than 15 seconds.<br>sleep 15s <br><br>#this adds the immutable attribute from the app.rpt audio archive directory preventing any further audio files from being stored.<br>chattr +i /home/allstaraudio/*<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 19, 2019 at 1:20 AM Mark Johnston <<a href="mailto:markjohnston73@gmail.com">markjohnston73@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><a href="https://www.google.com/search?ei=jhHhXKeTCsWCk-4Pope3oA0&q=asterisk+1.4+voicemail&oq=asterisk+1.4&gs_l=psy-ab.1.0.35i39j0l3j0i22i30l6.11482.19925..21107...6.0..0.87.1219.17......0....1..gws-wiz.....6..0i71j0i67j0i131j0i20i263.fAOFoHS72mA" target="_blank">https://www.google.com/search?ei=jhHhXKeTCsWCk-4Pope3oA0&q=asterisk+1.4+voicemail&oq=asterisk+1.4&gs_l=psy-ab.1.0.35i39j0l3j0i22i30l6.11482.19925..21107...6.0..0.87.1219.17......0....1..gws-wiz.....6..0i71j0i67j0i131j0i20i263.fAOFoHS72mA</a><div><br></div><div><br></div><div><br></div><div><br clear="all"><div><div dir="ltr" class="gmail-m_-957897635885924862gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>**** North West Hub Allstar <a href="http://www.markjohnston.us/nwhub" target="_blank">Node 2295</a> ****</div><div><br></div><div>"Got Root?"</div><div><br></div><div><span style="font-family:verdana"><font size="2">How many software engineers does it take to change a light bulb?</font></span></div><div><span style="font-family:verdana;color:rgb(52,52,52)"><b><font size="2">None. It's a hardware problem.</font></b></span></div><div><br></div><div>The best way to accelerate a computer running Windows is at 9.81 m/s².</div><div><br></div><div><span style="line-height:31px"><i style="line-height:15px"><b><u><i><span style="font-size:small"><font color="#FF0000">"I get paid to support Windows, I use Linux to get work done."</font></span></i></u></b></i></span><br><br></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 19, 2019 at 12:19 AM Matthew Simmons <<a href="mailto:km6toa@gmail.com" target="_blank">km6toa@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">What is this "built in voicemail" you speak of? <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 19, 2019 at 12:16 AM Mark Johnston <<a href="mailto:markjohnston73@gmail.com" target="_blank">markjohnston73@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Yea, I looked into using the built in voicemail, but havent' touched that in a while... <div>Way back I made a vmail system (scripted) for IRLP...</div><div><br></div><div><br></div><div><br></div><div><br clear="all"><div><div dir="ltr" class="gmail-m_-957897635885924862gmail-m_2852713447721786459gmail-m_-4915963912248127246gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>**** North West Hub Allstar <a href="http://www.markjohnston.us/nwhub" target="_blank">Node 2295</a> ****</div><div><br></div><div>"Got Root?"</div><div><br></div><div><span style="font-family:verdana"><font size="2">How many software engineers does it take to change a light bulb?</font></span></div><div><span style="font-family:verdana;color:rgb(52,52,52)"><b><font size="2">None. It's a hardware problem.</font></b></span></div><div><br></div><div>The best way to accelerate a computer running Windows is at 9.81 m/s².</div><div><br></div><div><span style="line-height:31px"><i style="line-height:15px"><b><u><i><span style="font-size:small"><font color="#FF0000">"I get paid to support Windows, I use Linux to get work done."</font></span></i></u></b></i></span><br><br></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 19, 2019 at 12:14 AM Clifford Novey <<a href="mailto:cnovey@gmail.com" target="_blank">cnovey@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Great idea. I hope you figure it out.<div dir="auto">Clifford </div><div dir="auto">KK6QMS </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 18, 2019, 2:10 PM Matthew Simmons <<a href="mailto:km6toa@gmail.com" target="_blank">km6toa@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">
<div>My goal is to create a simple 'answering machine' for my allstar node. <br></div><div><br></div><div>I
would like for a user to be able to connect to my node and enter a DTMF
command that would then cause the node to record the very next
transmission and store it to a folder on a mounted volume on the PI. <br></div><div><br></div><div>I have looked into using the built-in recording feature via <i>'</i><i>archivedir' </i>. Howver I am not sure how to control it so that it will start and stop recording. <br><i></i></div><div><br></div><div>So
my question is this. Is there a simple way to tell the node to record
the next transmission, save it, and then stop recording? <br></div><div><br></div><div>I am hoping
this could be done via a script which could be called by app rpt via a
dtmf command. <br></div><div><br></div><div>Any info or suggestions would be greatly appreciated. <br></div><div><br></div><div>73, <br></div><div>KM6TOA</div>
</div>
_______________________________________________<br>
App_rpt-users mailing list<br>
<a href="mailto:App_rpt-users@lists.allstarlink.org" rel="noreferrer" target="_blank">App_rpt-users@lists.allstarlink.org</a><br>
<a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" rel="noreferrer noreferrer" target="_blank">http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users</a><br>
<br>
To unsubscribe from this list please visit <a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" rel="noreferrer noreferrer" target="_blank">http://lists.allstarlink.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"<br>
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. <br>
</blockquote></div>
_______________________________________________<br>
App_rpt-users mailing list<br>
<a href="mailto:App_rpt-users@lists.allstarlink.org" target="_blank">App_rpt-users@lists.allstarlink.org</a><br>
<a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" rel="noreferrer" target="_blank">http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users</a><br>
<br>
To unsubscribe from this list please visit <a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" rel="noreferrer" target="_blank">http://lists.allstarlink.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"<br>
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. <br>
</blockquote></div>
_______________________________________________<br>
App_rpt-users mailing list<br>
<a href="mailto:App_rpt-users@lists.allstarlink.org" target="_blank">App_rpt-users@lists.allstarlink.org</a><br>
<a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" rel="noreferrer" target="_blank">http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users</a><br>
<br>
To unsubscribe from this list please visit <a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" rel="noreferrer" target="_blank">http://lists.allstarlink.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"<br>
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. <br>
</blockquote></div>
_______________________________________________<br>
App_rpt-users mailing list<br>
<a href="mailto:App_rpt-users@lists.allstarlink.org" target="_blank">App_rpt-users@lists.allstarlink.org</a><br>
<a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" rel="noreferrer" target="_blank">http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users</a><br>
<br>
To unsubscribe from this list please visit <a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" rel="noreferrer" target="_blank">http://lists.allstarlink.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"<br>
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. <br>
</blockquote></div>
_______________________________________________<br>
App_rpt-users mailing list<br>
<a href="mailto:App_rpt-users@lists.allstarlink.org" target="_blank">App_rpt-users@lists.allstarlink.org</a><br>
<a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" rel="noreferrer" target="_blank">http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users</a><br>
<br>
To unsubscribe from this list please visit <a href="http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users" rel="noreferrer" target="_blank">http://lists.allstarlink.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"<br>
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. <br>
</blockquote></div>