OptionalallowedOptionalfetchOptional fetch override for the REST client. Tests pass an in-memory
mock so unit tests can verify REST traffic without real Twilio.
OptionalhttpHTTP server port. 0 = OS-assigned (recommended for tests).
OptionalonCallback invoked when the remote side sends DTMF mid-call.
Twilio-owned phone number in E.164 format (e.g. "+14155551234").
OptionalpublicHTTPS URL routing to this machine. Required at connect() time.
OptionalrestOptional REST helper override. When provided, replaces the default
TwilioRESTHelper constructed from accountSid/authToken. Lets tests
inject a fully-stubbed REST surface.
OptionalroleRole under test — AGENT (default) or USER.
OptionalvalidateReject inbound webhooks without a valid X-Twilio-Signature. Tests pass
false to bypass; production callers must leave on.
Allowed-callers filter for inbound calls. Unset = any caller accepted.