Answer the question
In order to leave comments, you need to log in
How to make two records of one conversation in asterisk?
Good afternoon. We have enabled a permanent recording of the conversation using MixMonitor Now we need to additionally make one more recording containing a certain important fragment.
I configured the Dial like this SIP/somesip/${EXTEN},30,W
set DYNAMIC_FEATURES=automon
automon => *1
but no extra write happens.
Is it possible in principle to make two entries with an asterisk and how?
Answer the question
In order to leave comments, you need to log in
Greetings!
Correlating the description of the problem and the attempted solution, I did not quite understand why they went this way.
As far as I know, setting DYNAMIC_FEATURES allows the "Calling" subscriber to start recording at the moment he needs.
If you need to duplicate the recording (if I understand correctly), then just copy the recorded audio file and do it directly from the dialplan. For example, like this:
exten => s,1,NoOp
exten => s,n,Set(fname=${STRFTIME(${EPOCH},,%Y_%m_%d_%H-%M)}-${ CALLERID(number)}-${EXTNUM})
exten => s,n,Set(recdir=/etc/asterisk/Recordings/${STRFTIME(${EPOCH},,%Y/%m/%d)})
exten => s,n,System(mkdir ${recdir})
exten => s,n,MixMonitor(${recdir}/${fname}.wav)
exten => s,n,Dial(SIP/111,120,rtT )
exten => s,n,HangUp()
exten => h,1,System(/bin/cp ${recdir}/${fname}.wav /yourdirectory > /var/log/asterisk/copyrecord.log)
I took a piece of your config, which is on incoming calls.
In the first two Set functions, I form the file name and path to it. Then I start MixMonitor with these variables. After Hengap, I use the h extension, where I run the System function and copy the file using standard Linux tools.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question