P
P
pashaxp2013-11-05 19:24:41
Asterisk
pashaxp, 2013-11-05 19:24:41

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

5 answer(s)
D
Dmitry Skogorev, 2013-11-05
@pashaxp

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

G
GloooM, 2013-11-05
@GloooM

By default, the asterisk has a MixMonitor() function that should help.

A
Alexander Borisovich, 2013-11-05
@Alexufo

Does he write in a compressed format?

J
jkreet, 2013-11-06
@jkreet

You can also use ConfBridge - conferences are recorded by default.
exten => 88,1,ConfBridge(1)

P
Pavel Mansurov, 2014-08-29
@barabashek

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)

For better understanding
www.voip-info.org/wiki/view/Asterisk+cmd+Record
https://wiki.asterisk.org/wiki/display/AST/Record+...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question