Call record after transfer don't work

Hello there, I’m using Asterisk 1.8.32.3 and Asterisk CDR v2.6.4
So the problem is
4201 accept a call
it’s recording fine
the 4201 transfer a call to anyone
and here record stop
I’m kinda new to asterisk and I get it from last sysadmin, so I tried to google it but there are no help

1.8 is almost half a decade beyond its supported life.

Are you using monitor or mixmonitor (I don’t know if it makes a difference)? How do you request the recording?

dont know if this exists on Asterisk1.8

exten => 1,n,MixMonitor(training_recording.wav)

exten => 1,n,Set(AUDIOHOOK_INHERIT(MixMonitor)=yes)

https://wiki.asterisk.org/wiki/display/AST/Audiohooks

2 Likes

I belive I do and I request the record by cdr at web interface.

So I added this into extension.conf and it’s look like this now:

; MixMonitor
[macro-recording]
exten => s,1,GoToIf($["${RECORDING}" = "1"]?mp3)
exten => s,n,GoToIf($["${RECORDING}" = "2"]?wav:no)
exten => s,n(mp3),Set(fname=${STRFTIME(${EPOCH},,%Y/%m/%d/)}${UNIQUEID}-${STRFTIME(${EPOCH},,%Y-%m-%d-%H_%M)}-${ARG1}-${ARG2});
exten => s,n,Set(monopt=nice -n 19 /usr/bin/lame -b 32  --silent "${DIR_RECORDS}${fname}.wav"  "${DIR_RECORDS}${fname}.mp3" && rm -f "${DIR_RECORDS}${fname}.wav" && chmod o+r "${DIR_RECORDS}${fname}.mp3"
exten => s,n,Set(CDR(filename)=${fname}.mp3);
exten => s,n,Set(CDR(realdst)=${ARG2});
exten => s,n,Set(CDR(remoteip)=${CHANNEL(recvip)});
exten => s,n,MixMonitor(${DIR_RECORDS}${fname}.wav,b,${monopt});
exten => s,n,Goto(no);
exten => s,n(wav),Set(fname=${UNIQUEID}-${STRFTIME(${EPOCH},,%Y-%m-%d-%H_%M)}-${ARG1}-${ARG2});
exten => s,n,Set(CDR(filename)=${fname}.wav);
exten => s,n,Set(CDR(realdst)=${ARG2});
exten => s,n,Set(CDR(remoteip)=${CHANNEL(recvip)});
exten => s,n,MixMonitor(${DIR_RECORDS}${fname}.wav,b);
exten => s,n,Set(AUDIOHOOK_INHERIT(MixMonitor)=yes)
exten => s,n,Goto(no);
exten => s,n(no),Verbose(Exit record);

but it still not work

How can I check if it do?

The questions was which one.

Asterisk does not come with a web interface; you need to use the support channels for web interface for help in using that. Web interfaces usually come with large and complex pre-coded and automatically generated dialplans that can only sensibly be supported by experts in those web interfaces.

CDR makes no sense in terms of voice recording, it generally referes to call detail recording, i.e. the collection of call records.

Ok. it’s MixMonitor

Well, I dont have any, there is only cdr and call centr status, so I guess I miss the point of question. What does mean:

There is some code above mb it will help.

there is a known bug in freepbx that recording of transfers are only in second leg not first

hope this helps

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.