mirror of
https://github.com/jambonz/sbc-outbound.git
synced 2025-12-19 04:27:45 +00:00
remove tmp hardcoding
This commit is contained in:
@@ -13,8 +13,7 @@ const createBLegFromHeader = (req, teams) => {
|
||||
const from = req.getParsedHeader('From');
|
||||
const host = teams ? req.get('X-MS-Teams-Tenant-FQDN') : 'localhost';
|
||||
const uri = parseUri(from.uri);
|
||||
//if (uri && uri.user) return `sip:${uri.user}@${host}`;
|
||||
if (uri && uri.user) return `sip:+15085710838@${host}`;
|
||||
if (uri && uri.user) return `sip:${uri.user}@${host}`;
|
||||
return `sip:anonymous@${host}`;
|
||||
};
|
||||
const createBLegToHeader = (req, teams) => {
|
||||
|
||||
Reference in New Issue
Block a user