I use Local Channels in a Queue Ring All group with a timeout of about 10 seconds.
Im trying to suppress CDR’s from being generated for every timeout for agents who do not answer.
For example a queue with 10 agents that took 100 seconds to answer the call will generate 100/10s timeout x 10 agents = 100 records
I have tried this way but the records are still being written:
cdr.conf:
;Dont generate CDR by default
channeldefaultenabled=no
;Wait until after hangup before writing CDR record
endbeforehexten=no
extensions.conf:
[subDial-Extension]
…
;Allow CDR for this context as disabled by default
same => n,Set(CDR_PROP(disable)=0)
;Set Hangup Handler
same => n,Set(CHANNEL(hangup_handler_push)=subCDRhangup,start,1())
…
[subCDRhangup]
exten => start,1,NoOp(## CDR Disposition = ${CDR(disposition)} ##)
;If call disposition is not ANSWERED then dont write CDR
same => n,GotoIf($[“${CDR(disposition)}”=“ANSWERED”]?end)
;Ok disable CDR record
same => n,Set(CDR_PROP(disable)=0)
same => n(end),Return
Any ideas why this is happening? The CDR’s are meant to be written after the hangup handler?