SCRIPT_EXECUTION_FAILED: TRUNK_STATUS_MISMATCH Architect v2024.3.1 runs the agent script right after the Ohio BYOC pool swaps in. The flow node grabs trunk health via the routing API, but the payload returns empty. SIP registration holds steady on secondary carriers, yet the script chokes on the GET /api/v2/routing/trunks endpoint. Console throws a 401 Unauthorized when the token rolls over, which it’s doing every time the pool swaps. Fifteen trunks across regions, and this Ohio path is the only one throwing the mismatch. Outbound rules prefer the primary, but failover triggers the script before the SIP registrar finishes checking.
Bumped the script timeout to 3000ms with a retry loop on the trunk status node. Doesn’t help. Carrier proxy responds fine to direct SIP OPTIONS pings, but the scripting engine drops the thread. Logs show the flow halts at the Set Variable block right after the call. Using the standard US-East routing profile with dynamic trunk selection. Script works fine when the primary stays online, but once Ohio takes over, the token refresh lags behind the routing decision. Checked carrier DSCP markings and they’re all set to EF. Still getting empty payloads on the…