Merge pull request #2173 from captaincaius/fix-nextjs-webhook-example-null-check

fix nextjs webhook example num_endpoints null check
This commit is contained in:
Mark Backman
2025-07-08 14:10:16 -07:00
committed by GitHub

View File

@@ -103,7 +103,7 @@ export default async function handler(req, res) {
const sip_config = {
display_name: From,
sip_mode: 'dial-in',
num_endpoints: call_transfer !== null ? 2 : 1,
num_endpoints: (call_transfer !== undefined && call_transfer !== null) ? 2 : 1,
codecs: {"audio": ["OPUS"]},
};
daily_room_properties.sip = sip_config;