The call recordings in CDR are disappear

Hey guys,

since I have updated to freepbx 12 and asterisk 13\11 I have big problem:

no call recordings in CDR and UCP. But call recordings exist in var/spool/asterisk/monitor/ folder.

I think I found a bug:

In file /etc/asterisk/extensions_additional.conf

[macro-hangupcall]
exten => s,1(start),GotoIf($["${USE_CONFIRMATION}"="" | “${RINGGROUP_INDEX}”="" | “${CHANNEL}”!="${UNIQCHAN}"]?theend)
exten => s,n(delrgi),Noop(Deleting: RG/${RINGGROUP_INDEX}/${CHANNEL} ${DB_DELETE(RG/${RINGGROUP_INDEX}/${CHANNEL})})
exten => s,n(theend),ExecIf($["${ONETOUCH_RECFILE}"!="" & “${CDR(recordingfile)}”=""]?Set(CDR(recordingfile)=${ONETOUCH_RECFILE}))
exten => s,n,Hangup
exten => s,n,MacroExit()

;–== end of [macro-hangupcall] ==–;

ONETOUCH_RECFILE variable used but not declared.

Logs:
[2014-12-03 15:12:49] VERBOSE[2783][C-00001bab] pbx.c: – Executing [h@macro-dialout-trunk:1] Macro(“SIP/9120-0000368d”, “hangupcall,”) in new stack
[2014-12-03 15:12:49] VERBOSE[2783][C-00001bab] pbx.c: – Executing [s@macro-hangupcall:1] GotoIf(“SIP/9120-0000368d”, “1?theend”) in new stack
[2014-12-03 15:12:49] VERBOSE[2783][C-00001bab] pbx.c: – Goto (macro-hangupcall,s,3)
[2014-12-03 15:12:49] VERBOSE[2783][C-00001bab] pbx.c: – Executing [s@macro-hangupcall:3] ExecIf(“SIP/9120-0000368d”, “0?Set(CDR(recordingfile)=)”) in new stack
[2014-12-03 15:12:49] VERBOSE[2783][C-00001bab] pbx.c: – Executing [s@macro-hangupcall:4] Hangup(“SIP/9120-0000368d”, “”) in new stack
[2014-12-03 15:12:49] VERBOSE[2783][C-00001bab] app_macro.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/9120-0000368d’ in macro ‘hangupcall’
[2014-12-03 15:12:49] VERBOSE[2783][C-00001bab] pbx.c: == Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on ‘SIP/9120-0000368d’
[2014-12-03 15:12:49] VERBOSE[2783][C-00001bab] app_macro.c: == Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on ‘SIP/9120-0000368d’ in macro ‘dialout-trunk’
[2014-12-03 15:12:49] VERBOSE[2783][C-00001bab] pbx.c: == Spawn extension (from-internal, 79048314787, 4) exited non-zero on ‘SIP/9120-0000368d’

FreePBX Distro 6.12.65-21
Asterisk 11.14.0
CDR Report 12.0.9

I seriously need your help.

Thanks!

I heard somewhere that current CDR’s are not yet supported for Asterisk 13. Can anyone in the know clarify?

CDRs in 12 and 13 work but they work differently than in the past. For FreePBX 13 we are completely re-writing CDRs in FreePBX.

This seems more like you didnt install the call recordings module.

I solved the problem.

Usually we use a call recording format WAV (wav49). We have no problems before.
But in FreePBX 12 (and Asterisk 11) if call recording format wav49:

call log:
Executing [recordcheck@sub-record-check:16] NoOp(“SIP/9112-00004382”, “Starting recording: out, 79111370914”) in new stack
– Executing [recordcheck@sub-record-check:17] Set(“SIP/9112-00004382”, “AUDIOHOOK_INHERIT(MixMonitor)=yes”) in new stack
– Executing [recordcheck@sub-record-check:18] Set(“SIP/9112-00004382”, “__CALLFILENAME=out-79111370914-9112-20141205-172428-1417789468.17282”) in new stack
– Executing [recordcheck@sub-record-check:19] MixMonitor(“SIP/0102-00004382”, “2014/12/05/out-79111370914-9112-20141205-172428-1417789468.17282.wav49,ai(LOCAL_MIXMON_ID),”) in new stack
– Executing [recordcheck@sub-record-check:20] Set(“SIP/9112-00004382”, “__MIXMON_ID=0xb5dee7b8”) in new stack
– Executing [recordcheck@sub-record-check:21] Set(“SIP/9112-00004382”, “__RECORD_ID=SIP/9112-00004382”) in new stack
– Executing [recordcheck@sub-record-check:22] Set(“SIP/9112-00004382”, “__REC_STATUS=RECORDING”) in new stack
– Executing [recordcheck@sub-record-check:23] Set(“SIP/9112-00004382”, “CDR(recordingfile)=out-79111370914-9112-20141205-172428-1417789468.17282.wav49”) in new stack

As you can see It has an extension .wav49. But this file has an extension .wav at the folder var/spool/asterisk/monitor/. Therefore, there was no call recordings in CDR.

When we changed the call recording format to wav (by default) the call recordings in CDR are appear.

1 Like