Skip to main content

WSS errors and Active Stream Monitoring

Active Stream Monitoring

Check how many streams are live on your account.

Authentication

HTTP Basic Auth — API Key as username, API Token as password.

Example request

curl -u '<api_key>:<api_token>' -X GET \
'https://api.in.exotel.com/v1/Accounts/<AccountSid>/ActiveStreams'

Example response

This endpoint returns XML (legacy v1 format), not JSON — unlike most other AgentStream examples in this section.

<?xml version="1.0" encoding="UTF-8"?>
<TwilioResponse>
<Stream>
<ActiveStreamCount>0</ActiveStreamCount>
<ThrottleLimit>100</ThrottleLimit>
</Stream>
</TwilioResponse>

Path is case-sensitive: use ActiveStreams (not activestreams).

Try It


WSS close codes

CodeMeaningCommon cause
1000Normal closureClean disconnect
1001Endpoint going awayServer restart
1002–1003Protocol / data errorMalformed frames
1006Abnormal closureNetwork drop · TLS failure · server crash
1007–1009Payload / policy / sizeChunk out of bounds
1011Server errorUnhandled exception
1012–1013Restart / retryTransient — retry

1006 checklist

  1. WSS URL reachable from the public internet
  2. TLS certificate valid for the hostname
  3. Firewall allows Exotel egress IPs (ask support for the current list)
  4. Handshake completes within ~10 s

Support payload

When opening a ticket, include:

  • Account SID
  • Call SID / Stream SID
  • Approximate timestamp (IST)
  • WSS close code and server logs around the failure
  • error / detailedstatus from Passthru if present