TaskFlow
DashboardFreewriteWhiteboardsProjectsCRMTasksNotificationsSettingsAgent TowerAPI Docs
OpenClaw Docs
?

User

Member

Caricamento in corso...

Home
Progetti
Task
Notifiche
CRM

    OpenClaw

    Documentation Mirror

    Documentation Overview

    Docs

    Auth credential semantics
    Scheduled tasks
    Hooks
    Automation & tasks
    Standing orders
    Task flow
    Background tasks
    BlueBubbles
    Broadcast groups
    Channel routing
    Discord
    Feishu
    Google Chat
    Group messages
    Groups
    iMessage
    Chat channels
    IRC
    LINE
    Channel location parsing
    Matrix
    Matrix migration
    Matrix push rules for quiet previews
    Mattermost
    Microsoft Teams
    Nextcloud Talk
    Nostr
    Pairing
    QA channel
    QQ bot
    Signal
    Slack
    Synology Chat
    Telegram
    Tlon
    Channel troubleshooting
    Twitch
    WeChat
    WhatsApp
    Yuanbao
    Zalo
    Zalo personal
    CI pipeline
    ACP
    Agent
    Agents
    Approvals
    Backup
    Browser
    Channels
    Clawbot
    `openclaw commitments`
    Completion
    Config
    Configure
    Cron
    Daemon
    Dashboard
    Devices
    Directory
    DNS
    Docs
    Doctor
    Flows (redirect)
    Gateway
    Health
    Hooks
    CLI reference
    Inference CLI
    Logs
    MCP
    Memory
    Message
    Migrate
    Models
    Node
    Nodes
    Onboard
    Pairing
    Plugins
    Proxy
    QR
    Reset
    Sandbox CLI
    Secrets
    Security
    Sessions
    Setup
    Skills
    Status
    System
    `openclaw tasks`
    TUI
    Uninstall
    Update
    Voicecall
    Webhooks
    Wiki
    Active memory
    Agent runtime
    Agent loop
    Agent runtimes
    Agent workspace
    Gateway architecture
    Channel docking
    Inferred commitments
    Compaction
    Context
    Context engine
    Delegate architecture
    Dreaming
    Experimental features
    Features
    Markdown formatting
    Memory overview
    Builtin memory engine
    Honcho memory
    QMD memory engine
    Memory search
    Messages
    Model failover
    Model providers
    Models CLI
    Multi-agent routing
    OAuth
    OpenClaw App SDK
    Presence
    QA overview
    Matrix QA
    Command queue
    Steering queue
    Retry policy
    Session management
    Session pruning
    Session tools
    SOUL.md personality guide
    Streaming and chunking
    System prompt
    Timezones
    TypeBox
    Typing indicators
    Usage tracking
    Date and time
    Node + tsx crash
    Diagnostics flags
    Authentication
    Background exec and process tool
    Bonjour discovery
    Bridge protocol
    CLI backends
    Configuration — agents
    Configuration — channels
    Configuration — tools and custom providers
    Configuration
    Configuration examples
    Configuration reference
    Diagnostics export
    Discovery and transports
    Doctor
    Gateway lock
    Health checks
    Heartbeat
    Gateway runbook
    Local models
    Gateway logging
    Multiple gateways
    Network model
    OpenAI chat completions
    OpenResponses API
    OpenShell
    OpenTelemetry export
    Gateway-owned pairing
    Prometheus metrics
    Gateway protocol
    Remote access
    Remote gateway setup
    Sandbox vs tool policy vs elevated
    Sandboxing
    Secrets management
    Secrets apply plan contract
    Security audit checks
    Security
    Tailscale
    Tools invoke API
    Troubleshooting
    Trusted proxy auth
    Debugging
    Environment variables
    FAQ
    FAQ: first-run setup
    FAQ: models and auth
    GPT-5.5 / Codex agentic parity
    GPT-5.5 / Codex parity maintainer notes
    Help
    Scripts
    Testing
    Testing: live suites
    General troubleshooting
    OpenClaw
    Ansible
    Azure
    Bun (experimental)
    ClawDock
    Release channels
    DigitalOcean
    Docker
    Docker VM runtime
    exe.dev
    Fly.io
    GCP
    Hetzner
    Hostinger
    Install
    Installer internals
    Kubernetes
    macOS VMs
    Migration guide
    Migrating from Claude
    Migrating from Hermes
    Nix
    Node.js
    Northflank
    Oracle Cloud
    Podman
    Railway
    Raspberry Pi
    Render
    Uninstall
    Updating
    Logging
    Network
    Audio and voice notes
    Camera capture
    Image and media support
    Nodes
    Location command
    Media understanding
    Talk mode
    Node troubleshooting
    Voice wake
    Pi integration architecture
    Pi development workflow
    Android app
    Platforms
    iOS app
    Linux app
    Gateway on macOS
    Canvas
    Gateway lifecycle
    macOS dev setup
    Health checks (macOS)
    Menu bar icon
    macOS logging
    Menu bar
    Peekaboo bridge
    macOS permissions
    Remote control
    macOS signing
    Skills (macOS)
    Voice overlay
    Voice wake (macOS)
    WebChat (macOS)
    macOS IPC
    macOS app
    Windows
    Plugin internals
    Plugin architecture internals
    Building plugins
    Plugin bundles
    Codex Computer Use
    Codex harness
    Community plugins
    Plugin compatibility
    Google Meet plugin
    Plugin hooks
    Plugin manifest
    Memory LanceDB
    Memory wiki
    Message presentation
    Agent harness plugins
    Building channel plugins
    Channel turn kernel
    Plugin entry points
    Plugin SDK migration
    Plugin SDK overview
    Building provider plugins
    Plugin runtime helpers
    Plugin setup and config
    Plugin SDK subpaths
    Plugin testing
    Skill workshop plugin
    Voice call plugin
    Webhooks plugin
    Zalo personal plugin
    OpenProse
    Alibaba Model Studio
    Anthropic
    Arcee AI
    Azure Speech
    Amazon Bedrock
    Amazon Bedrock Mantle
    Chutes
    Claude Max API proxy
    Cloudflare AI gateway
    ComfyUI
    Deepgram
    Deepinfra
    DeepSeek
    ElevenLabs
    Fal
    Fireworks
    GitHub Copilot
    GLM (Zhipu)
    Google (Gemini)
    Gradium
    Groq
    Hugging Face (inference)
    Provider directory
    Inferrs
    Inworld
    Kilocode
    LiteLLM
    LM Studio
    MiniMax
    Mistral
    Model provider quickstart
    Moonshot AI
    NVIDIA
    Ollama
    OpenAI
    OpenCode
    OpenCode Go
    OpenRouter
    Perplexity
    Qianfan
    Qwen
    Runway
    SGLang
    StepFun
    Synthetic
    Tencent Cloud (TokenHub)
    Together AI
    Venice AI
    Vercel AI gateway
    vLLM
    Volcengine (Doubao)
    Vydra
    xAI
    Xiaomi MiMo
    Z.AI
    Default AGENTS.md
    Release policy
    API usage and costs
    Credits
    Device model database
    Full release validation
    Memory configuration reference
    OpenClaw App SDK API design
    Prompt caching
    Rich output protocol
    RPC adapters
    SecretRef credential surface
    Session management deep dive
    AGENTS.md template
    BOOT.md template
    BOOTSTRAP.md template
    HEARTBEAT.md template
    IDENTITY template
    SOUL.md template
    TOOLS.md template
    USER template
    Tests
    Token use and costs
    Transcript hygiene
    Onboarding reference
    Contributing to the threat model
    Threat model (MITRE ATLAS)
    Formal verification (security models)
    Network proxy
    Agent bootstrapping
    Docs directory
    Getting started
    Docs hubs
    OpenClaw lore
    Onboarding (macOS app)
    Onboarding overview
    Personal assistant setup
    Setup
    Showcase
    Onboarding (CLI)
    CLI automation
    CLI setup reference
    ACP agents
    ACP agents — setup
    Agent send
    apply_patch tool
    Brave search
    Browser (OpenClaw-managed)
    Browser control API
    Browser troubleshooting
    Browser login
    WSL2 + Windows + remote Chrome CDP troubleshooting
    BTW side questions
    ClawHub
    Code execution
    Creating skills
    Diffs
    DuckDuckGo search
    Elevated mode
    Exa search
    Exec tool
    Exec approvals
    Exec approvals — advanced
    Firecrawl
    Gemini search
    Grok search
    Image generation
    Tools and plugins
    Kimi search
    LLM task
    Lobster
    Tool-loop detection
    Media overview
    MiniMax search
    Multi-agent sandbox and tools
    Music generation
    Ollama web search
    PDF tool
    Perplexity search
    Plugins
    Reactions
    SearXNG search
    Skills
    Skills config
    Slash commands
    Sub-agents
    Tavily
    Thinking levels
    Tokenjuice
    Trajectory bundles
    Text-to-speech
    Video generation
    Web search
    Web fetch
    Linux server
    Control UI
    Dashboard
    Web
    TUI
    WebChat

    OpenAPI Specs

    openapi
    TaskFlow
    docs/openclaw
    Original Docs

    Real-time Synchronized Documentation

    Last sync: 01/05/2026 07:02:51

    Note: This content is mirrored from docs.openclaw.ai and is subject to their terms and conditions.

    OpenClaw Docs

    v2.4.0 Production

    Last synced: Today, 22:00

    Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.

    Use this file to discover all available pages before exploring further.

    Voice call plugin

    Voice calls for OpenClaw via a plugin. Supports outbound notifications, multi-turn conversations, full-duplex realtime voice, streaming transcription, and inbound calls with allowlist policies.

    Current providers:

    text
    twilio
    (Programmable Voice + Media Streams),
    text
    telnyx
    (Call Control v2),
    text
    plivo
    (Voice API + XML transfer + GetInput speech),
    text
    mock
    (dev/no network).

    note

    The Voice Call plugin runs **inside the Gateway process**. If you use a remote Gateway, install and configure the plugin on the machine running the Gateway, then restart the Gateway to load it.

    Quick start

    Install the plugin

    ```bash} openclaw plugins install @openclaw/voice-call ```
    text
    <Tab title="From a local folder (dev)"> ```bash} PLUGIN_SRC=./path/to/local/voice-call-plugin openclaw plugins install "$PLUGIN_SRC" cd "$PLUGIN_SRC" && pnpm install ``` </Tab> </Tabs> If npm reports the OpenClaw-owned package as deprecated, that package version is from an older external package train; use a current packaged OpenClaw build or the local folder path until a newer npm package is published. Restart the Gateway afterwards so the plugin loads.

    Configure provider and webhook

    Set config under `plugins.entries.voice-call.config` (see [Configuration](#configuration) below for the full shape). At minimum: `provider`, provider credentials, `fromNumber`, and a publicly reachable webhook URL.

    Verify setup

    ```bash} openclaw voicecall setup ```
    text
    The default output is readable in chat logs and terminals. It checks plugin enablement, provider credentials, webhook exposure, and that only one audio mode (`streaming` or `realtime`) is active. Use `--json` for scripts.

    Smoke test

    ```bash} openclaw voicecall smoke openclaw voicecall smoke --to "+15555550123" ```
    text
    Both are dry runs by default. Add `--yes` to actually place a short outbound notify call: ```bash} openclaw voicecall smoke --to "+15555550123" --yes ```

    warning

    For Twilio, Telnyx, and Plivo, setup must resolve to a **public webhook URL**. If `publicUrl`, the tunnel URL, the Tailscale URL, or the serve fallback resolves to loopback or private network space, setup fails instead of starting a provider that cannot receive carrier webhooks.

    Configuration

    If

    text
    enabled: true
    but the selected provider is missing credentials, Gateway startup logs a setup-incomplete warning with the missing keys and skips starting the runtime. Commands, RPC calls, and agent tools still return the exact missing provider configuration when used.

    note

    Voice-call credentials accept SecretRefs. `plugins.entries.voice-call.config.twilio.authToken`, `plugins.entries.voice-call.config.realtime.providers.*.apiKey`, `plugins.entries.voice-call.config.streaming.providers.*.apiKey`, and `plugins.entries.voice-call.config.tts.providers.*.apiKey` resolve through the standard SecretRef surface; see [SecretRef credential surface](/reference/secretref-credential-surface).
    json5
    { plugins: { entries: { "voice-call": { enabled: true, config: { provider: "twilio", // or "telnyx" | "plivo" | "mock" fromNumber: "+15550001234", // or TWILIO_FROM_NUMBER for Twilio toNumber: "+15550005678", twilio: { accountSid: "ACxxxxxxxx", authToken: "...", }, telnyx: { apiKey: "...", connectionId: "...", // Telnyx webhook public key from the Mission Control Portal // (Base64; can also be set via TELNYX_PUBLIC_KEY). publicKey: "...", }, plivo: { authId: "MAxxxxxxxxxxxxxxxxxxxx", authToken: "...", }, // Webhook server serve: { port: 3334, path: "/voice/webhook", }, // Webhook security (recommended for tunnels/proxies) webhookSecurity: { allowedHosts: ["voice.example.com"], trustedProxyIPs: ["100.64.0.1"], }, // Public exposure (pick one) // publicUrl: "https://example.ngrok.app/voice/webhook", // tunnel: { provider: "ngrok" }, // tailscale: { mode: "funnel", path: "/voice/webhook" }, outbound: { defaultMode: "notify", // notify | conversation }, streaming: { enabled: true /* see Streaming transcription */ }, realtime: { enabled: false /* see Realtime voice */ }, }, }, }, }, }

    Realtime voice conversations

    text
    realtime
    selects a full-duplex realtime voice provider for live call audio. It is separate from
    text
    streaming
    , which only forwards audio to realtime transcription providers.

    warning

    `realtime.enabled` cannot be combined with `streaming.enabled`. Pick one audio mode per call.

    Current runtime behaviour:

    • text
      realtime.enabled
      is supported for Twilio Media Streams.
    • text
      realtime.provider
      is optional. If unset, Voice Call uses the first registered realtime voice provider.
    • Bundled realtime voice providers: Google Gemini Live (
      text
      google
      ) and OpenAI (
      text
      openai
      ), registered by their provider plugins.
    • Provider-owned raw config lives under
      text
      realtime.providers.<providerId>
      .
    • Voice Call exposes the shared
      text
      openclaw_agent_consult
      realtime tool by default. The realtime model can call it when the caller asks for deeper reasoning, current information, or normal OpenClaw tools.
    • If
      text
      realtime.provider
      points at an unregistered provider, or no realtime voice provider is registered at all, Voice Call logs a warning and skips realtime media instead of failing the whole plugin.
    • Consult session keys reuse the existing voice session when available, then fall back to the caller/callee phone number so follow-up consult calls keep context during the call.

    Tool policy

    text
    realtime.toolPolicy
    controls the consult run:

    PolicyBehavior
    text
    safe-read-only
    Expose the consult tool and limit the regular agent to
    text
    read
    ,
    text
    web_search
    ,
    text
    web_fetch
    ,
    text
    x_search
    ,
    text
    memory_search
    , and
    text
    memory_get
    .
    text
    owner
    Expose the consult tool and let the regular agent use the normal agent tool policy.
    text
    none
    Do not expose the consult tool. Custom
    text
    realtime.tools
    are still passed through to the realtime provider.

    Realtime provider examples

    Defaults: API key from `realtime.providers.google.apiKey`, `GEMINI_API_KEY`, or `GOOGLE_GENERATIVE_AI_API_KEY`; model `gemini-2.5-flash-native-audio-preview-12-2025`; voice `Kore`.
    text
    ```json5} { plugins: { entries: { "voice-call": { config: { provider: "twilio", inboundPolicy: "allowlist", allowFrom: ["+15550005678"], realtime: { enabled: true, provider: "google", instructions: "Speak briefly. Call openclaw_agent_consult before using deeper tools.", toolPolicy: "safe-read-only", providers: { google: { apiKey: "${GEMINI_API_KEY}", model: "gemini-2.5-flash-native-audio-preview-12-2025", voice: "Kore", }, }, }, }, }, }, }, } ```
    ```json5} { plugins: { entries: { "voice-call": { config: { realtime: { enabled: true, provider: "openai", providers: { openai: { apiKey: "${OPENAI_API_KEY}" }, }, }, }, }, }, }, } ```

    See Google provider and OpenAI provider for provider-specific realtime voice options.

    Streaming transcription

    text
    streaming
    selects a realtime transcription provider for live call audio.

    Current runtime behavior:

    • text
      streaming.provider
      is optional. If unset, Voice Call uses the first registered realtime transcription provider.
    • Bundled realtime transcription providers: Deepgram (
      text
      deepgram
      ), ElevenLabs (
      text
      elevenlabs
      ), Mistral (
      text
      mistral
      ), OpenAI (
      text
      openai
      ), and xAI (
      text
      xai
      ), registered by their provider plugins.
    • Provider-owned raw config lives under
      text
      streaming.providers.<providerId>
      .
    • After Twilio sends an accepted stream
      text
      start
      message, Voice Call registers the stream immediately, queues inbound media through the transcription provider while the provider connects, and starts the initial greeting only after realtime transcription is ready.
    • If
      text
      streaming.provider
      points at an unregistered provider, or none is registered, Voice Call logs a warning and skips media streaming instead of failing the whole plugin.

    Streaming provider examples

    Defaults: API key `streaming.providers.openai.apiKey` or `OPENAI_API_KEY`; model `gpt-4o-transcribe`; `silenceDurationMs: 800`; `vadThreshold: 0.5`.
    text
    ```json5} { plugins: { entries: { "voice-call": { config: { streaming: { enabled: true, provider: "openai", streamPath: "/voice/stream", providers: { openai: { apiKey: "sk-...", // optional if OPENAI_API_KEY is set model: "gpt-4o-transcribe", silenceDurationMs: 800, vadThreshold: 0.5, }, }, }, }, }, }, }, } ```
    Defaults: API key `streaming.providers.xai.apiKey` or `XAI_API_KEY`; endpoint `wss://api.x.ai/v1/stt`; encoding `mulaw`; sample rate `8000`; `endpointingMs: 800`; `interimResults: true`.
    text
    ```json5} { plugins: { entries: { "voice-call": { config: { streaming: { enabled: true, provider: "xai", streamPath: "/voice/stream", providers: { xai: { apiKey: "${XAI_API_KEY}", // optional if XAI_API_KEY is set endpointingMs: 800, language: "en", }, }, }, }, }, }, }, } ```

    TTS for calls

    Voice Call uses the core

    text
    messages.tts
    configuration for streaming speech on calls. You can override it under the plugin config with the same shape — it deep-merges with
    text
    messages.tts
    .

    json5
    { tts: { provider: "elevenlabs", providers: { elevenlabs: { voiceId: "pMsXgVXv3BLzUgSXRplE", modelId: "eleven_multilingual_v2", }, }, }, }

    warning

    **Microsoft speech is ignored for voice calls.** Telephony audio needs PCM; the current Microsoft transport does not expose telephony PCM output.

    Behavior notes:

    • Legacy
      text
      tts.<provider>
      keys inside plugin config (
      text
      openai
      ,
      text
      elevenlabs
      ,
      text
      microsoft
      ,
      text
      edge
      ) are repaired by
      text
      openclaw doctor --fix
      ; committed config should use
      text
      tts.providers.<provider>
      .
    • Core TTS is used when Twilio media streaming is enabled; otherwise calls fall back to provider-native voices.
    • If a Twilio media stream is already active, Voice Call does not fall back to TwiML
      text
      <Say>
      . If telephony TTS is unavailable in that state, the playback request fails instead of mixing two playback paths.
    • When telephony TTS falls back to a secondary provider, Voice Call logs a warning with the provider chain (
      text
      from
      ,
      text
      to
      ,
      text
      attempts
      ) for debugging.
    • When Twilio barge-in or stream teardown clears the pending TTS queue, queued playback requests settle instead of hanging callers awaiting playback completion.

    TTS examples

    ```json5} { messages: { tts: { provider: "openai", providers: { openai: { voice: "alloy" }, }, }, }, } ``` ```json5} { plugins: { entries: { "voice-call": { config: { tts: { provider: "elevenlabs", providers: { elevenlabs: { apiKey: "elevenlabs_key", voiceId: "pMsXgVXv3BLzUgSXRplE", modelId: "eleven_multilingual_v2", }, }, }, }, }, }, }, } ``` ```json5} { plugins: { entries: { "voice-call": { config: { tts: { providers: { openai: { model: "gpt-4o-mini-tts", voice: "marin", }, }, }, }, }, }, }, } ```

    Inbound calls

    Inbound policy defaults to

    text
    disabled
    . To enable inbound calls, set:

    json5
    { inboundPolicy: "allowlist", allowFrom: ["+15550001234"], inboundGreeting: "Hello! How can I help?", }

    warning

    `inboundPolicy: "allowlist"` is a low-assurance caller-ID screen. The plugin normalizes the provider-supplied `From` value and compares it to `allowFrom`. Webhook verification authenticates provider delivery and payload integrity, but it does **not** prove PSTN/VoIP caller-number ownership. Treat `allowFrom` as caller-ID filtering, not strong caller identity.

    Auto-responses use the agent system. Tune with

    text
    responseModel
    ,
    text
    responseSystemPrompt
    , and
    text
    responseTimeoutMs
    .

    Spoken output contract

    For auto-responses, Voice Call appends a strict spoken-output contract to the system prompt:

    text
    {"spoken":"..."}

    Voice Call extracts speech text defensively:

    • Ignores payloads marked as reasoning/error content.
    • Parses direct JSON, fenced JSON, or inline
      text
      "spoken"
      keys.
    • Falls back to plain text and removes likely planning/meta lead-in paragraphs.

    This keeps spoken playback focused on caller-facing text and avoids leaking planning text into audio.

    Conversation startup behavior

    For outbound

    text
    conversation
    calls, first-message handling is tied to live playback state:

    • Barge-in queue clear and auto-response are suppressed only while the initial greeting is actively speaking.
    • If initial playback fails, the call returns to
      text
      listening
      and the initial message remains queued for retry.
    • Initial playback for Twilio streaming starts on stream connect without extra delay.
    • Barge-in aborts active playback and clears queued-but-not-yet-playing Twilio TTS entries. Cleared entries resolve as skipped, so follow-up response logic can continue without waiting on audio that will never play.
    • Realtime voice conversations use the realtime stream's own opening turn. Voice Call does not post a legacy
      text
      <Say>
      TwiML update for that initial message, so outbound
      text
      <Connect><Stream>
      sessions stay attached.

    Twilio stream disconnect grace

    When a Twilio media stream disconnects, Voice Call waits 2000 ms before auto-ending the call:

    • If the stream reconnects during that window, auto-end is canceled.
    • If no stream re-registers after the grace period, the call is ended to prevent stuck active calls.

    Stale call reaper

    Use

    text
    staleCallReaperSeconds
    to end calls that never receive a terminal webhook (for example, notify-mode calls that never complete). The default is
    text
    0
    (disabled).

    Recommended ranges:

    • Production:
      text
      120
      –
      text
      300
      seconds for notify-style flows.
    • Keep this value higher than
      text
      maxDurationSeconds
      so normal calls can finish. A good starting point is
      text
      maxDurationSeconds + 30–60
      seconds.
    json5
    { plugins: { entries: { "voice-call": { config: { maxDurationSeconds: 300, staleCallReaperSeconds: 360, }, }, }, }, }

    Webhook security

    When a proxy or tunnel sits in front of the Gateway, the plugin reconstructs the public URL for signature verification. These options control which forwarded headers are trusted:

    Allowlist hosts from forwarding headers. Trust forwarded headers without an allowlist. Only trust forwarded headers when the request remote IP matches the list.

    Additional protections:

    • Webhook replay protection is enabled for Twilio and Plivo. Replayed valid webhook requests are acknowledged but skipped for side effects.
    • Twilio conversation turns include a per-turn token in
      text
      <Gather>
      callbacks, so stale/replayed speech callbacks cannot satisfy a newer pending transcript turn.
    • Unauthenticated webhook requests are rejected before body reads when the provider's required signature headers are missing.
    • The voice-call webhook uses the shared pre-auth body profile (64 KB / 5 seconds) plus a per-IP in-flight cap before signature verification.

    Example with a stable public host:

    json5
    { plugins: { entries: { "voice-call": { config: { publicUrl: "https://voice.example.com/voice/webhook", webhookSecurity: { allowedHosts: ["voice.example.com"], }, }, }, }, }, }

    CLI

    bash
    openclaw voicecall call --to "+15555550123" --message "Hello from OpenClaw" openclaw voicecall start --to "+15555550123" # alias for call openclaw voicecall continue --call-id <id> --message "Any questions?" openclaw voicecall speak --call-id <id> --message "One moment" openclaw voicecall dtmf --call-id <id> --digits "ww123456#" openclaw voicecall end --call-id <id> openclaw voicecall status --call-id <id> openclaw voicecall tail openclaw voicecall latency # summarize turn latency from logs openclaw voicecall expose --mode funnel

    When the Gateway is already running, operational

    text
    voicecall
    commands delegate to the Gateway-owned voice-call runtime so the CLI does not bind a second webhook server. If no Gateway is reachable, the commands fall back to a standalone CLI runtime.

    text
    latency
    reads
    text
    calls.jsonl
    from the default voice-call storage path. Use
    text
    --file <path>
    to point at a different log and
    text
    --last <n>
    to limit analysis to the last N records (default 200). Output includes p50/p90/p99 for turn latency and listen-wait times.

    Agent tool

    Tool name:

    text
    voice_call
    .

    ActionArgs
    text
    initiate_call
    text
    message
    ,
    text
    to?
    ,
    text
    mode?
    ,
    text
    dtmfSequence?
    text
    continue_call
    text
    callId
    ,
    text
    message
    text
    speak_to_user
    text
    callId
    ,
    text
    message
    text
    send_dtmf
    text
    callId
    ,
    text
    digits
    text
    end_call
    text
    callId
    text
    get_status
    text
    callId

    This repo ships a matching skill doc at

    text
    skills/voice-call/SKILL.md
    .

    Gateway RPC

    MethodArgs
    text
    voicecall.initiate
    text
    to?
    ,
    text
    message
    ,
    text
    mode?
    ,
    text
    dtmfSequence?
    text
    voicecall.continue
    text
    callId
    ,
    text
    message
    text
    voicecall.speak
    text
    callId
    ,
    text
    message
    text
    voicecall.dtmf
    text
    callId
    ,
    text
    digits
    text
    voicecall.end
    text
    callId
    text
    voicecall.status
    text
    callId

    text
    dtmfSequence
    is only valid with
    text
    mode: "conversation"
    . Notify-mode calls should use
    text
    voicecall.dtmf
    after the call exists if they need post-connect digits.

    Troubleshooting

    Setup fails webhook exposure

    Run setup from the same environment that runs the Gateway:

    bash
    openclaw voicecall setup openclaw voicecall setup --json

    For

    text
    twilio
    ,
    text
    telnyx
    , and
    text
    plivo
    ,
    text
    webhook-exposure
    must be green. A configured
    text
    publicUrl
    still fails when it points at local or private network space, because the carrier cannot call back into those addresses. Do not use
    text
    localhost
    ,
    text
    127.0.0.1
    ,
    text
    0.0.0.0
    ,
    text
    10.x
    ,
    text
    172.16.x
    -
    text
    172.31.x
    ,
    text
    192.168.x
    ,
    text
    169.254.x
    ,
    text
    fc00::/7
    , or
    text
    fd00::/8
    as
    text
    publicUrl
    .

    Use one public exposure path:

    json5
    { plugins: { entries: { "voice-call": { config: { publicUrl: "https://voice.example.com/voice/webhook", // or tunnel: { provider: "ngrok" }, // or tailscale: { mode: "funnel", path: "/voice/webhook" }, }, }, }, }, }

    After changing config, restart or reload the Gateway, then run:

    bash
    openclaw voicecall setup openclaw voicecall smoke

    text
    voicecall smoke
    is a dry run unless you pass
    text
    --yes
    .

    Provider credentials fail

    Check the selected provider and the required credential fields:

    • Twilio:
      text
      twilio.accountSid
      ,
      text
      twilio.authToken
      , and
      text
      fromNumber
      , or
      text
      TWILIO_ACCOUNT_SID
      ,
      text
      TWILIO_AUTH_TOKEN
      , and
      text
      TWILIO_FROM_NUMBER
      .
    • Telnyx:
      text
      telnyx.apiKey
      ,
      text
      telnyx.connectionId
      ,
      text
      telnyx.publicKey
      , and
      text
      fromNumber
      .
    • Plivo:
      text
      plivo.authId
      ,
      text
      plivo.authToken
      , and
      text
      fromNumber
      .

    Credentials must exist on the Gateway host. Editing a local shell profile does not affect an already running Gateway until it restarts or reloads its environment.

    Calls start but provider webhooks do not arrive

    Confirm the provider console points at the exact public webhook URL:

    text
    https://voice.example.com/voice/webhook

    Then inspect runtime state:

    bash
    openclaw voicecall status --call-id <id> openclaw voicecall tail openclaw logs --follow

    Common causes:

    • text
      publicUrl
      points at a different path than
      text
      serve.path
      .
    • The tunnel URL changed after the Gateway started.
    • A proxy forwards the request but strips or rewrites host/proto headers.
    • Firewall or DNS routes the public hostname somewhere other than the Gateway.
    • The Gateway was restarted without the Voice Call plugin enabled.

    When a reverse proxy or tunnel is in front of the Gateway, set

    text
    webhookSecurity.allowedHosts
    to the public hostname, or use
    text
    webhookSecurity.trustedProxyIPs
    for a known proxy address. Use
    text
    webhookSecurity.trustForwardingHeaders
    only when the proxy boundary is under your control.

    Signature verification fails

    Provider signatures are checked against the public URL OpenClaw reconstructs from the incoming request. If signatures fail:

    • Confirm the provider webhook URL exactly matches
      text
      publicUrl
      , including scheme, host, and path.
    • For ngrok free-tier URLs, update
      text
      publicUrl
      when the tunnel hostname changes.
    • Ensure the proxy preserves the original host and proto headers, or configure
      text
      webhookSecurity.allowedHosts
      .
    • Do not enable
      text
      skipSignatureVerification
      outside local testing.

    Google Meet Twilio joins fail

    Google Meet uses this plugin for Twilio dial-in joins. First verify Voice Call:

    bash
    openclaw voicecall setup openclaw voicecall smoke --to "+15555550123"

    Then verify the Google Meet transport explicitly:

    bash
    openclaw googlemeet setup --transport twilio

    If Voice Call is green but the Meet participant never joins, check the Meet dial-in number, PIN, and

    text
    --dtmf-sequence
    . The phone call can be healthy while the meeting rejects or ignores an incorrect DTMF sequence.

    Google Meet passes the Meet DTMF sequence and intro text to

    text
    voicecall.start
    . For Twilio calls, Voice Call serves the DTMF TwiML first, redirects back to the webhook, then opens the realtime media stream so the saved intro is generated after the phone participant has joined the meeting.

    Use

    text
    openclaw logs --follow
    for the live phase trace. A healthy Twilio Meet join logs this order:

    • Google Meet delegates the Twilio join to Voice Call.
    • Voice Call stores pre-connect DTMF TwiML.
    • Twilio initial TwiML is consumed and served before realtime handling.
    • Voice Call serves realtime TwiML for the Twilio call.
    • The realtime bridge starts with the initial greeting queued.

    text
    openclaw voicecall tail
    still shows persisted call records; it is useful for call state and transcripts, but not every webhook/realtime transition appears there.

    Realtime call has no speech

    Confirm only one audio mode is enabled.

    text
    realtime.enabled
    and
    text
    streaming.enabled
    cannot both be true.

    For realtime Twilio calls, also verify:

    • A realtime provider plugin is loaded and registered.
    • text
      realtime.provider
      is unset or names a registered provider.
    • The provider API key is available to the Gateway process.
    • text
      openclaw logs --follow
      shows realtime TwiML served, the realtime bridge started, and the initial greeting queued.

    Related

    • Talk mode
    • Text-to-speech
    • Voice wake

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine