[arm-allstar] Has anyone tried RECORD in Asterisk?
Doug Crompton
doug at crompton.com
Tue Jun 7 23:26:12 EST 2016
Duane,
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.
You will need to setup a dialplan in extensions.conf for recording. Here is an example -
[SoundRecording]
exten => _55x,1,Wait(2)
exten => _55x,2,Record(/etc/asterisk/local/prompt${EXTEN:2}.wav|3|60)
exten => _55x,3,Wait(1)
exten => _55x,4,Playback(/etc/asterisk/local/prompt${EXTEN:2})
exten => _55x,5,Wait(2)
exten => _55x,6,Hangup()
This will record up to 10 messages. 550 through 559 and place them in /etc/asterisk/local/prompt0 through prompt9
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.
This could be called using the phone patch technique as describe in this howto from the hamvoip.org we page -
http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/Allstar_extended_functions_using_autopatch.pdf
So presumably if you set it up for *62 you would DTMF *62550 through *62559.
The 55x numbers are arbitrary and just what I used in my PBX.
Recording to the same extension overwrites the previous file.
I have not tried this in Allstar. The script works and the autopatch to extended functions works. Whether they play together needs some experimentation.
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.
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 -
950=localplay,/etc/asterisk/local/prompt0
.....
959=localplay,/etc/asterisk/local/prompt9
If you are successful or have any questions let me know.
73 Doug
WA3DSP
http://www.crompton.com/hamradio
Date: Tue, 7 Jun 2016 21:41:33 -0400
To: arm-allstar at hamvoip.org
Subject: [arm-allstar] Has anyone tried RECORD in Asterisk?
From: arm-allstar at hamvoip.org
CC: selkie2 at comcast.net
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. Thoughts anyone who may have traveled down this road before...73,Duane KA1LM
Virus-free. www.avast.com
_______________________________________________
arm-allstar mailing list
arm-allstar at hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
Visit the BBB and RPi2 web page - http://hamvoip.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hamvoip.org/pipermail/arm-allstar/attachments/20160608/cb085f09/attachment.html>
More information about the arm-allstar
mailing list