- Shipped
- November 15, 2026 at 11:31 AM UTC
- Author
- Kamo
- Commit
- 28ba7dc
The recording section of extensions_custom.conf is now rendered from the recording policy in every PBX policy pull: ALL / INBOUND / OUTBOUND / OFF (extension-to-extension calls only under ALL), and a notice NEVER / ALWAYS / BY_AREA_CODE (two-party-consent area codes; a non-NANP number counts as due). Outside calls get the notice through Dial's A(called:caller) via DIAL_TRUNK_OPTIONS; voicemail callers through Playback; other legs only when answered, else inherited __KAMO_REC_NOTICED. A due notice with none on disk means the call is not recorded (fail closed). The notice WAV (8 kHz mono 16-bit, checked) arrives in the pull only when the held version differs and is kept in RECORDING_NOTICE_DIR. No policy object = the original block, so an older Kamo behaves exactly as before; EnsureConfigured installs the original block only when no section exists, so a restart never undoes the policy.
