Asterisk/Een gesprek opnemen
Een gesprek opnemen is in Nederland toegestaan als je zelf deelnemer bent. Als je zelf geen deelnemer bent, en je hebt geen toestemming van één van de deelnemers, wordt het gezien als afluisteren en is het strafbaar ([1]).
Zet de volgende drie regels in het dialplan dat je wil opnemen (en vervang eventueel de "s"):
exten => s,n,Set(TIMESTAMP=${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}) ; <-- deze regel weglaten vóór Asterisk 1.6 exten => s,n,Set(CALLFILENAME=${TIMESTAMP}_${CALLERID(num)}) exten => s,n,Monitor(wav,${CALLFILENAME},mb)
Alle calls worden nu opgeslagen als datum-tijd_telefoonnummer.wav in de standaard opslagmap voor monitoring, standaard /var/spool/asterisk/monitor.
"On/off the record" tijdens een telefoongesprek
Zie [2] -- (of kan dit nog mooier?)
Documentatie van Monitor
foo*CLI> core show application Monitor -= Info about application 'Monitor' =- [Synopsis] Monitor a channel. [Description] Used to start monitoring a channel. The channel's input and output voice packets are logged to files until the channel hangs up or monitoring is stopped by the StopMonitor application. By default, files are stored to "/var/spool/asterisk/monitor/". Returns '-1' if monitor files can't be opened or if the channel is already monitored, otherwise '0'. [Syntax] Monitor([file_format[:urlbase]][,fname_base[,options]]) [Arguments] file_format optional, if not set, defaults to 'wav' fname_base if set, changes the filename used to the one specified. options m: when the recording ends mix the two leg files into one and delete the two leg files. If the variable ${MONITOR_EXEC} is set, the application referenced in it will be executed instead of soxmix/sox and the raw leg files will NOT be deleted automatically. soxmix/sox or ${MONITOR_EXEC} is handed 3 arguments, the two leg files and a target mixed file name which is the same as the leg file names only without the in/out designator. If ${MONITOR_EXEC_ARGS} is set, the contents will be passed on as additional arguments to ${MONITOR_EXEC}. Both ${MONITOR_EXEC} and the Mix flag can be set from the administrator interface. b: Don't begin recording unless a call is bridged to another channel. i: Skip recording of input stream (disables 'm' option). o: Skip recording of output stream (disables 'm' option). [See Also] StopMonitor() foo*CLI>