refactor(voice-call): split manager
This commit is contained in:
10
extensions/voice-call/src/manager/twiml.ts
Normal file
10
extensions/voice-call/src/manager/twiml.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { escapeXml } from "../voice-mapping.js";
|
||||
|
||||
export function generateNotifyTwiml(message: string, voice: string): string {
|
||||
return `<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Response>
|
||||
<Say voice="${voice}">${escapeXml(message)}</Say>
|
||||
<Hangup/>
|
||||
</Response>`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user