Call recording announcement on outgoing calls

Dear All,
We have legal requirements to:

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

How are you making the recording (including on which channel)? Have you set it to include unbridged calls?

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

You haven’t answered how you are doing the recording.

I currently searching a way to do recording
i found command to play file for both:

ktrktrTtAaA(custom/rec-custom:custom/rec-custom)

but announcement still not included to recording file

Normal recording for extension is done, but problem is I can not include announcement in recording

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.

I am trying also to do

Custom Options:
ktrTtU(custom-outcall-recording^s^1)

extensions__90-out.conf:

[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()

But no luck

Announcements:

are processed before callee subroutines:

You would need to use a pre-dial subroutine to get MixMonitor run early enough, on the B side.