Cant suppress CDR records being generated for NOT ANSWERED calls

Hi All

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?

Thanks Mike

Would you mind posting some logs ? Curious about the GotoIf execution.

Also what is your setting (if any) for “unanswered” in cdr.conf ?

Hmm, is this a double-negative issue ?

disable - Setting to 1 will disable CDRs for this channel. Setting to 0 will enable CDRs for this channel.
Write-Only

Hi Penguinpbx

I have now decided to use CEL rather than CDR so I dont really need this info any more.
Thanks for responding though.

Thanks
Mike

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