mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-07 22:09:57 +00:00
fix(voice-call): harden inbound policy
This commit is contained in:
@@ -48,11 +48,17 @@ function resolveProvider(config: VoiceCallConfig): VoiceCallProvider {
|
||||
|
||||
switch (config.provider) {
|
||||
case "telnyx":
|
||||
return new TelnyxProvider({
|
||||
apiKey: config.telnyx?.apiKey,
|
||||
connectionId: config.telnyx?.connectionId,
|
||||
publicKey: config.telnyx?.publicKey,
|
||||
});
|
||||
return new TelnyxProvider(
|
||||
{
|
||||
apiKey: config.telnyx?.apiKey,
|
||||
connectionId: config.telnyx?.connectionId,
|
||||
publicKey: config.telnyx?.publicKey,
|
||||
},
|
||||
{
|
||||
allowUnsignedWebhooks:
|
||||
config.inboundPolicy === "open" || config.inboundPolicy === "disabled",
|
||||
},
|
||||
);
|
||||
case "twilio":
|
||||
return new TwilioProvider(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user