FreePBX17 on Debian Call Recordings To/from Trunks Not Working

Server details:
FreePBX 17.0.19.23
Debian GNU/Linux 12 (bookworm)

I am have having an issue with call recordings where calls originate from inbound routes or originate from an extension going externally through an outbound route. Internal calls extension to extension are recording and can be played back using CEL.

Looking at the files in var/spool/asterisk/monitor all file permissions are set to 644. The files using inbound/outbound routes are listed in CEL but have a file size of 1KB - nothing recording.

I have set the inbound/outbound routes call recording to Force as well as Settings → Advanced settings → Call Record Option to Yes.

The system logs do show that MixMonitor creates a file and starts recording and closes filestream then ends recording as well.

Appreciate any advise where to look or configuration settings that I may have missed.

Cheers.

Can you share the logs

Successful internal to internal
5494 [2025-01-17 14:52:07] VERBOSE[177017][C-00000018] pbx.c: Executing [recordcheck@sub-record-check:21] MixMonitor(“PJSIP/755-0000002d”, “2025/01/17/internal-780-755-20250117-145207-1737085927.86.WAV,abi(20250117-145207-1737085927.86),”) in new stack
5495 [2025-01-17 14:52:07] VERBOSE[177036][C-00000018] app_mixmonitor.c: Begin MixMonitor Recording PJSIP/755-0000002d
5496 [2025-01-17 14:52:17] VERBOSE[177036][C-00000018] app_mixmonitor.c: MixMonitor close filestream (mixed)
5497 [2025-01-17 14:52:17] VERBOSE[177036][C-00000018] app_mixmonitor.c: End MixMonitor Recording PJSIP/755-0000002d

Unsuccessful from Inbound Trunk
14441 [2025-01-17 15:28:32] VERBOSE[188481][C-00000024] pbx.c: Executing [recordcheck@sub-record-check:21] MixMonitor(“PJSIP/InboundTrunk-0000003f”, “2025/01/17/in-DID-Caller-20250117-152832-1737088112.119.WAV,abi(20250117-152832-1737088112.119),”) in new stack
14442 [2025-01-17 15:28:32] VERBOSE[188482][C-00000024] app_mixmonitor.c: Begin MixMonitor Recording PJSIP/InboundTrunk-0000003f
14443 [2025-01-17 15:28:48] VERBOSE[188482][C-00000024] app_mixmonitor.c: MixMonitor close filestream (mixed)
14444 [2025-01-17 15:28:48] VERBOSE[188482][C-00000024] app_mixmonitor.c: End MixMonitor Recording PJSIP/InboundTrunk-0000003f

Try doing a test with the debug turned up for mixmonitor. You can get into the asterisk console with asterisk -r then do core set debug 10 app_mixmonitor.so which will provide debug details for what is happening.

Post the output for the test call using inbound or outbound routes.

OK found the problem. Settings → Advanced settings → Call Record Option needs to be set to NO. Goes against what you would think you need to set.
All good now.

Not really, most people don’t want dead air recordings or recording that just is an IVR greeting, etc. Not sure what you’re trying to record when no call is established.

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