Declares whether callback ids satisfy the durable manager contract.
Twilio credentials and optional overrides.
Verify an incoming Twilio webhook request using HMAC-SHA1.
X-Twilio-Signature header from the request.getExpectedTwilioSignature does. A locale-aware sort puts Called
before CallSid and fails every real voice webhook.CallSid,
CallStatus, Digits, SequenceNumber or Timestamp repeats with
different values is refused.HMAC-SHA1 of the signed string using the auth token as the key.Raw webhook request context.
Verification result with valid: true if the signature matches.
Parse a Twilio webhook body into normalized NormalizedCallEvents.
Twilio sends webhooks with a form-encoded body containing CallSid,
CallStatus, and optionally Digits (for DTMF input from <Gather>).
Each webhook may produce one or two events (status + optional DTMF).
In carrier mode a request other than POST yields no events (Twilio signs
a GET by its URL alone, so a body there carries nothing Twilio signed),
and each event carries a stable id from stableCarrierEvents: a
DTMF event's occurrence is the signed SequenceNumber or Timestamp,
else the callback URL's event_key, and a DTMF event with none throws.
Raw webhook request context.
Parsed result containing zero or more normalized events.
Initiate an outbound call via the Twilio Calls API.
Posts to /Accounts/{accountSid}/Calls.json with a form-encoded body
(not JSON -- this is Twilio's 2010-era API convention). All four status
callback events (initiated, ringing, answered, completed) are
requested so the CallManager receives the full state progression.
Call initiation parameters (from/to numbers, webhook URLs).
Result containing the Twilio CallSid on success.
Never throws; returns { success: false, error: '...' } on failure.
Hang up an active call by POSTing Status=completed.
Twilio uses the same Calls resource endpoint for both querying and
modifying a call. Setting Status=completed instructs Twilio to
immediately terminate the call.
Contains the Twilio CallSid to hang up.
Speaks text using escaped TwiML; raw interpolation is an explicit compatibility option.
Readonly nameProvider identifier, always 'twilio'.
Twilio voice call provider.
Uses the Twilio REST API 2010-04-01 for outbound call control and HMAC-SHA1 for inbound webhook signature verification.
Example