Documentation
¶
Overview ¶
Package sms is the gateway's SMS adapter over Twilio: inbound messages arrive as form-encoded webhooks (signature-verified), replies go out through the Messages API. SMS is the tactical lane — alerts, approvals, short tasks from a phone — not a long-form chat surface. A2P registration (US 10DLC) is the operator's responsibility with Twilio.
Signature validation needs the EXACT public URL Twilio posts to (scheme, host, path — byte for byte), which a proxied server can't reliably reconstruct, so it is explicit config: sms.webhook_url in gateway.yaml.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
Channel is a Twilio SMS connection.
func New ¶
New builds an SMS channel. webhookURL must be the exact public URL configured on the Twilio number; with it empty the handler rejects everything (fail closed — unsigned/unverifiable inbound SMS is never delivered).