Sonata Billing Not Rating Outbound Calls from IP-Authenticated Trunk on VitalPBX

I have successfully set up Sonata Billing and most features appear to be working correctly, except for one specific outbound call scenario.

Setup Overview

  • I have a carrier trunk on VitalPBX that I use for outbound call termination.
  • I created a second SIP trunk using IP authentication to connect a remote PBX.
  • I configured a Class of Service (COS) that allows the remote PBX to route outbound calls through the carrier trunk on my VitalPBX system.
  • Calls are routing and completing successfully.
  • CDRs for these calls are being generated correctly in VitalPBX.

Issue

Sonata Billing does not seem to detect, rate, or bill these outbound calls.

Observation

  • Sonata Billing successfully rates outbound calls initiated directly from extensions registered on VitalPBX.
  • However, calls originating from the remote PBX via the IP-authenticated trunk are not being picked up for billing, even though the corresponding CDRs exist in VitalPBX.

Question

Is there an additional configuration, routing parameter, or integration step required for Sonata Billing to process and bill calls originating from a remote PBX connected through an IP-authenticated SIP trunk?

Any guidance or suggestions would be greatly appreciated.