Do not show call records on bill

Hello Folks,

I have a requirement not to display calls to certain numbers on the customer’s A2Billing bill.
This is a legal requirement where I am, eg if someone calls a children’s helpline then there is to be no record of the call on the bill. I have tried this suggestion which isn’t working:

"The only thing I can think of which may work is to use the predial hook.

In extensions_custom.conf, you will find this:

exten => s,1,GotoIf($["${OUT_${DIAL_TRUNK}:4:4}" = "A2B/"]?custom-freepbx-a2billing,${OUTNUM},1:2)
exten => s,2,MacroExit

Underneath, add the following lines, and repeat for all numbers you want no CDR for.

exten => 999,1,NoCDR()
exten => _1800X.,1,NoCDR()


Does anyone have any other ideas on how to achieve this.

I don’t think any of the A2Billing guys (@jroper) lurk here. They do have their own forum that may get you a faster response.