Overview
You would like to know how to output operator GTs and sender IDs when a message is rejected in the CDRs.
Information
CDRs are created only for messages discarded due to Routing Rule or External Condition Rule when the action is set to Discard with Nack, Discard with No Response, or Discard with Permanent error with an appropriate billing profile assigned to the rule.
If the rejection happens due to other reasons besides a routing rule action, there is no CDR generation.