bugfix: regression - adding custom headers to refer caused preferred hostname on Refer-To to be lost

This commit is contained in:
Dave Horton
2022-07-27 11:31:29 +01:00
parent baad125924
commit 2d350d4850

View File

@@ -628,7 +628,9 @@ Duration=${payload.duration} `
uri.user = `+${uri.user}`;
}
// eslint-disable-next-line no-unused-vars
const {via, from, to, 'call-id':callid, cseq, 'max-forwards':maxforwards, 'content-length':contentlength,
const {via, from, to, 'call-id':callid, cseq, 'max-forwards':maxforwards,
// eslint-disable-next-line no-unused-vars
'content-length':contentlength, 'refer-to':_referto, 'referred-by':_referredby,
...customHeaders
} = req.headers;