mirror of
https://github.com/jambonz/sbc-outbound.git
synced 2026-10-09 21:14:05 +00:00
remove tmp hardcoding
This commit is contained in:
1 parent
c66ba70500
commit
dccd57935e
1 file changed
+1
-2
+1
-2
@@ -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