whether when making outbound calls and call is answered, an announcement will be played informing that call is being recorded (ideally to both callee and caller) and the the conversation to start.
Can this be implemented?
Currently we use TtA(custom/some_file) - but issue here is that recording does not include announcement. Legal Team requires that recording should be announcement + call = full file
in Trunks, "Asterisk Trunk Dial Options " we set: TtA(custom/rec-custom)
/var/lib/asterisk/sounds/en/custom/ - is a folder
rec-custom.wav - is a file
Announcement will be played, but it will not be included in recording
Recording can be enabled on Trunk or on extension level.
official Asterisk manual says:
A(x:y) - Play an announcement to the called and/or calling parties, where x is the prompt to be played to the called party and y is the prompt to be played to the caller. The files may be different and will be played to each party simultaneously.
x - The file to play to the called party
y - The file to play to the calling party
so by this logic command must beTtA(custom/rec-custom:custom/rec-custom)
but in our case this does not work
So currently stuck how to record it with annoucment included
Asterisk will not record anything by default. You need to contact whoever set it up to do the recordings and ask them to explain how it is supposed to work.
You probably want to run MixMonitor, on the B leg, without the b option, but you haven’t provided enough information to be sure that is right for you.
I’d also point out that the last time a similar question was asked, it was pointed out that proving the message was sent doesn’t prove that it was received; the media path might not have set up immediately, and the only certain way is to ask the callee.
[custom-outcall-recording]
exten => s,1,NoOp(Recording announcement BEFORE bridge)
same => n,Answer()
same => n,Set(FILENAME=/var/spool/asterisk/monitor/${UNIQUEID}.wav)
same => n,MixMonitor(${FILENAME},a)
same => n,Background(custom/rec-unison-outcall-2024)
same => n,Return()