From df02837c823a01c19bed24760b8cf2b2965b16be Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Wed, 28 Jul 2021 16:22:05 -0400 Subject: [PATCH] brackets around From --- lib/call-session.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/call-session.js b/lib/call-session.js index 257e8af..4f08e3a 100644 --- a/lib/call-session.js +++ b/lib/call-session.js @@ -13,8 +13,8 @@ const MS_TEAMS_SIP_ENDPOINT = 'sip.pstnhub.microsoft.com'; const createBLegFromHeader = (req) => { const from = req.getParsedHeader('From'); const uri = parseUri(from.uri); - if (uri && uri.user) return `sip:${uri.user}@localhost`; - return 'sip:anonymous@localhost'; + if (uri && uri.user) return ``; + return ''; }; class CallSession extends Emitter {