Skip to content

Commit

Permalink
forward all refer to feature server
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu committed Nov 21, 2024
1 parent 916d577 commit dd4a91f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/call-session.js
Original file line number Diff line number Diff line change
Expand Up @@ -783,11 +783,7 @@ class CallSession extends Emitter {
try {
const response = await dlg.other.request({
method: 'REFER',
headers: {
'Refer-To': req.get('Refer-To'),
'Referred-By': req.get('Referred-By'),
'User-Agent': req.get('User-Agent')
}
headers: req.headers
});
res.send(response.status, response.reason);
} catch (err) {
Expand Down

0 comments on commit dd4a91f

Please sign in to comment.