Hi Vinicius,
Interesting use case. We're not currently doing dynamic trunk reordering based on campaign connect rates, but we do use BYOC outbound routes with multiple trunks and rely on route/trunk priority and distribution settings for traffic management.
In our environment, outbound routing is driven by Number Plans and Outbound Routes, with the route selecting the appropriate trunk(s). Most of our designs use sequential or priority-based routing rather than automatically changing trunk order during runtime.
The idea of monitoring connects rates and adjusting trunk preference through Data Actions is definitely interesting. One thing I'd be cautious of is route flapping if the threshold is too sensitive, as well as making sure there's a rollback mechanism if temporary carrier issues recover quickly.
I'd be interested to hear from anyone running this in production and whether they're using dedicated sites, Data Tables, or Data Actions to manage the logic.
------------------------------
Akhil
------------------------------