mirror of
https://github.com/jambonz/sbc-inbound.git
synced 2026-10-28 14:14:20 +00:00
brackets around From
This commit is contained in:
1 parent
e3963bf057
commit
df02837c82
1 file changed
+2
-2
+2
-2
@@ -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 `<sip:${uri.user}@localhost>`;
|
||||
return '<sip:anonymous@localhost>';
|
||||
};
|
||||
|
||||
class CallSession extends Emitter {
|
||||
|
||||
Reference in new issue
Block a user