<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,sans-serif" color="#000000">Duane,<br><br>I have done it in my PBX and there is no reason it could not be done in Allstar. Here is some guidance on how to get started.<br><br>You will need to setup a dialplan in extensions.conf for recording. Here is an example -<br><br>[SoundRecording]<br>exten => _55x,1,Wait(2)<br>exten => _55x,2,Record(/etc/asterisk/local/prompt${EXTEN:2}.wav|3|60)<br>exten => _55x,3,Wait(1)<br>exten => _55x,4,Playback(/etc/asterisk/local/prompt${EXTEN:2})<br>exten => _55x,5,Wait(2)<br>exten => _55x,6,Hangup()<br><br id="FontBreak"></font>This will record up to 10 messages. 550 through 559 and place them in /etc/asterisk/local/prompt0 through prompt9<br><br>Wait for beep then record the message. It stops recording after 3 seconds of silence and records a maximum of 60 seconds, both are settable in the command line.<br><br>This could be called using the phone patch technique as describe in this howto from the hamvoip.org we page -<br><br><a href="http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/Allstar_extended_functions_using_autopatch.pdf" target="_blank">http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/Allstar_extended_functions_using_autopatch.pdf</a><br><br>So presumably if you set it up for *62 you would DTMF *62550 through *62559. <br><br>The 55x numbers are arbitrary and just what I used in my PBX.<br><br>Recording to the same extension overwrites the previous file.<br><br>I have not tried this in Allstar. The script works and the autopatch to extended functions works. Whether they play together needs some experimentation.<br><br>Be warned that playback in the dialplan is global, there is no local play option. It would play to all connected nodes. So you may want to eliminate the playback and just hang up and then play it back local with another DTMF sequence.<br><br>Once the messages are recorded it is a simple matter using a playback (global) or localplay function in rpt.conf to play them back. Something like this in rpt.conf functions -<br><br>950=localplay,/etc/asterisk/local/prompt0<br>.....<br>959=localplay,/etc/asterisk/local/prompt9<br><br>If you are successful or have any questions let me know.<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, 7 Jun 2016 21:41:33 -0400<br>To: arm-allstar@hamvoip.org<br>Subject: [arm-allstar] Has anyone tried RECORD in Asterisk?<br>From: arm-allstar@hamvoip.org<br>CC: selkie2@comcast.net<br><br><div dir="ltr"><div class="ecxgmail_default" style="font-family:comic sans ms,sans-serif;font-size:small;">I have found references to RECORD in Asterisk tutorials. Wondered if it was possible to use that function to record repeater announcements from say the IAX port. If I could cook up some DTMF commands, it might be possible to do something like recording voicemail greetings on a PBX phone. </div><div class="ecxgmail_default" style="font-family:comic sans ms,sans-serif;font-size:small;">Thoughts anyone who may have traveled down this road before...</div><div class="ecxgmail_default" style="font-family:comic sans ms,sans-serif;font-size:small;">73,</div><div class="ecxgmail_default" style="font-family:comic sans ms,sans-serif;font-size:small;">Duane KA1LM</div></div><div id="ecxDDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #d3d4de;">
<tbody><tr>
<td style="width:55px;padding-top:13px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=oa-2322-a" target="_blank"><img src="https://ipmcdn.avast.com/images/2016/icons/icon-envelope-tick-round-orange_184x116-v1.png" height="29px"></a></td>
<td style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px;">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=oa-2322-a" target="_blank" style="color:#4453ea;">www.avast.com</a>
</td>
</tr>
</tbody></table><a href="#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2"></a></div>
<br>_______________________________________________
arm-allstar mailing list
arm-allstar@hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
Visit the BBB and RPi2 web page - http://hamvoip.org</div> </div></body>
</html>