Answer the question
In order to leave comments, you need to log in
Dictaphone using Asterisk
There is a conference phone KonfTel 250.
It has a useful call recording function, but the downside is that this device only supports SD cards up to 2GB inclusive, and conversations can be recorded for a maximum of 67 minutes. You will have to dump it from a flash drive into some kind of storage, which is not very convenient.
There is an idea to set up on the server with Asterisk, for example, such an opportunity: on the conftel we type ext. number 88 and the recording of the “conversation” begins, only we don’t call anyone, Asterisk itself picks up the phone, records the conversation in a certain folder, we hang up and the recording stops. Looks simple.
Here is the question: how can this be done? Perhaps someone has already done this. Do we need to use feature, macros? Or both? What to write in dialplan?
Perhaps there are better ideas than this one :)
Answer the question
In order to leave comments, you need to log in
exten => 88,1,Set(fname=${STRFTIME(${EPOCH},,%Y%m%d%H%M)}-${CALLERID(number)})
exten => 88,n,MixMonitor (/home/dict/${fname}.wav)
exten => 88,n,Answer()
writes to /home/dict/ a file like 2013.11.05-22:03:17-CALLER-CALLER.wav
You can also use ConfBridge - conferences are recorded by default.
exten => 88,1,ConfBridge(1)
As another option, you can use application - Record
Designed just for your purposes.
You can set the time of silence, after which the recording of the conversation will automatically end.
You don't have to set the recording time like with Mixmonitor.
You can select the recording format.
Example:
exten => 88,1,Answer()
same => n,Playback(Nachalo-zapisi)
same => n,Record(/my/path/razgovor.wav)
same => n,System(lame -V2 file.wav file.mp3)
same => n,System(rm /my/path/razgovor.wav)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question