CDR Postgresql error

Your pgqd was stopped for long time. Simplest option is drop events in queue, see example there The account balance is not being deducted from any of the accounts - #21 by dmitry.s