Skip to main content

Moving call IDs to the server

RTCID_SOURCE (per tenant) decides who creates the Call ID.

  • Client (default): the app chooses the Call ID or asks for one before dialling.
  • Server: the Call ID is created when the call is dialled and returned in the dial response.

What changes with Server

  • Asking for a Call ID before dialling (GetNewRtcId) returns 404 with RTCID_ISSUED_BY_DIAL.
  • A dial that brings its own Call ID (RtcId or RoomId) is refused with HTTP 400 and RTCID_ISSUED_BY_DIAL. No call is created.
  • A dial for an existing call is accepted only with that call's customer token in the X-Ecv-Call-Token header.

So apps that pick their own Call ID cannot start calls any more. Apps that dial first work with both values.

Release plan

  1. List every app and integration that dials: mobile apps, web pages, backends.
  2. Mobile SDK: set rtcIdSource to SERVER in ECVSdkConfiguration and release the app.
  3. Other integrations: dial without a Call ID and take RtcId from the dial response.
  4. Wait until old app versions are no longer in use.
  5. Set RTCID_SOURCE to Server for the tenant.
  6. Watch for RTCID_ISSUED_BY_DIAL errors. To go back, set Client.

If a DMZ server could not read the tenant's value yet while other tenants on it use Server, requests that bring or ask for a Call ID get 503 RTCID_SOURCE_UNKNOWN instead of being handled with the wrong value. They succeed once the value is read.