惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

宝玉的分享
宝玉的分享
J
Java Code Geeks
S
SegmentFault 最新的问题
L
LangChain Blog
M
MIT News - Artificial intelligence
Stack Overflow Blog
Stack Overflow Blog
IT之家
IT之家
量子位
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
雷峰网
雷峰网
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
MongoDB | Blog
MongoDB | Blog
Microsoft Security Blog
Microsoft Security Blog
腾讯CDC
H
Help Net Security
阮一峰的网络日志
阮一峰的网络日志
Jina AI
Jina AI
N
Netflix TechBlog - Medium
A
About on SuperTechFans
博客园 - 叶小钗
美团技术团队
人人都是产品经理
人人都是产品经理
D
DataBreaches.Net

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(voice-call): keep outbound realtime streams attached ...
steipete · 2026-04-25 · via Recent Commits to openclaw:main

@@ -606,6 +606,61 @@ describe("VoiceCallWebhookServer replay handling", () => {

606606

}

607607

});

608608609+

it.each(["outbound-api", "outbound-dial"] as const)(

610+

"returns realtime TwiML for %s twilio TwiML fetches",

611+

async (direction) => {

612+

const parseWebhookEvent = vi.fn(() => ({ events: [], statusCode: 200 }));

613+

const buildTwiMLPayload = vi.fn(() => ({

614+

statusCode: 200,

615+

headers: { "Content-Type": "text/xml" },

616+

body: '<Response><Connect><Stream url="wss://example.test/voice/stream/realtime/token" /></Connect></Response>',

617+

}));

618+

const twilioProvider: VoiceCallProvider = {

619+

...provider,

620+

name: "twilio",

621+

verifyWebhook: () => ({ ok: true, verifiedRequestKey: "twilio:req:rt-outbound" }),

622+

parseWebhookEvent,

623+

};

624+

const { manager, processEvent } = createManager([]);

625+

const config = createConfig({

626+

provider: "twilio",

627+

inboundPolicy: "disabled",

628+

realtime: {

629+

enabled: true,

630+

streamPath: "/voice/stream/realtime",

631+

tools: [],

632+

providers: {},

633+

},

634+

});

635+

const server = new VoiceCallWebhookServer(config, manager, twilioProvider);

636+

server.setRealtimeHandler({

637+

buildTwiMLPayload,

638+

getStreamPathPattern: () => "/voice/stream/realtime",

639+

handleWebSocketUpgrade: () => {},

640+

registerToolHandler: () => {},

641+

setPublicUrl: () => {},

642+

} as unknown as RealtimeCallHandler);

643+644+

try {

645+

const baseUrl = await server.start();

646+

const response = await postWebhookFormWithHeaders(

647+

server,

648+

baseUrl,

649+

`CallSid=CA123&Direction=${direction}&CallStatus=in-progress&From=%2B15550001111&To=%2B15550002222`,

650+

{ "x-twilio-signature": "sig" },

651+

);

652+653+

expect(response.status).toBe(200);

654+

expect(await response.text()).toContain("<Connect><Stream");

655+

expect(buildTwiMLPayload).toHaveBeenCalledTimes(1);

656+

expect(parseWebhookEvent).not.toHaveBeenCalled();

657+

expect(processEvent).not.toHaveBeenCalled();

658+

} finally {

659+

await server.stop();

660+

}

661+

},

662+

);

663+609664

it("rejects non-allowlisted inbound realtime calls before creating a stream token", async () => {

610665

const buildTwiMLPayload = vi.fn(() => ({

611666

statusCode: 200,