Support #2744
openCloudonix Call Loop Causing Session Duplication and Concurrency Limit Exhaustion
0%
Description
Hi Cloudonix Support,
I'm experiencing a call loop between Cloudonix and Bandwidth that creates multiple sessions per single call attempt and eventually exhausts our concurrency limit.
Domain: parkmyphone.cloudonix.net
Numbers involved:
• Caller: +15412926666 (external Bandwidth number)
• Destination: +13368713755 (a WiFi Calling subscriber DID in our Cloudonix domain, also hosted in our Bandwidth account)
What is happening:
- The external caller (+15412926666) dials +13368713755.
- Bandwidth delivers the call to Cloudonix (SIP INVITE from 67.231.1.154 / 67.231.5.176).
- Cloudonix triggers our CXML webhook, and our application responds with
<Dial>+13368713755</Dial>through our outbound trunks (Bandwidth from Oren's domain / Ahoi Outbound). - Since +13368713755 is hosted in the same Bandwidth account, Bandwidth treats the call as on-net and routes it back to Cloudonix.
- Cloudonix creates a new session and triggers our webhook again. Our application returns the same
<Dial>response, causing the loop to repeat. - This repeats every 2–5 seconds, generating 8–15 sessions per call attempt until our concurrency limit (5 sessions) is reached. At that point, new sessions are rejected with
BillingPlanLimitExceeded.
Observed session errors:
• Ahoi Outbound trunk: 503 Service Unavailable
• Bandwidth trunk: 407 Proxy Authentication Required or DialException – Error starting dial due to bridge gone
Example session tokens:
• f6293bd7bd8a44a988828ea202fecea7
• 1844cc02031a4f398191bcab775e3d2d
• 0f3655e251ba4192a7454bdd03f443a5
All were created on November 25, 2026, between 13:46:32 UTC and 13:47:05 UTC — same caller, same destination, arriving from the Bandwidth border on each iteration.
Could you please advise on the recommended approach for handling inbound calls to a subscriber DID that is also hosted in Bandwidth, without triggering this redelivery loop?
Updated by Nir Simionovich about 16 hours ago
- Status changed from New to Feedback
Based on your session, here is what happens:
The first CXML returned is this one:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Dial action="https://58d6-182-180-172-66.ngrok-free.app/api/v1/cloudonix/wifi-calling/dial-status?caller=%2B15412926666&dialTo=%2B13368713755&isInbound=true" method="POST" timeout="30" callerId="+15412926666">
+13368713755
</Dial>
<Hangup/>
</Response>
Because the Dial doesn't include any trunks specification, it tries all of them, one after the other. If Bandwidth is one of the trunks, it will dial it. What you need to do is take full control over outbound routing.
To do so, you need to disable Route Unknown Destinations to Border in your domain settings, then make sure your voice application returns the proper trunks value in the Dial verb, to make sure only a single trunk is
used when required.