From 28dae50202fd4b7452d96575de29f1f1329f26b4 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Mon, 24 Feb 2025 09:47:47 -0500 Subject: [PATCH] REFER should have sips contact if far end is using sips (#168) --- lib/call-session.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/call-session.js b/lib/call-session.js index 119af6b..4042c06 100644 --- a/lib/call-session.js +++ b/lib/call-session.js @@ -1173,7 +1173,7 @@ Duration=${payload.duration} ` // eslint-disable-next-line no-unused-vars 'content-length': _contentlength, 'refer-to': _referto, 'referred-by': referredby, // eslint-disable-next-line no-unused-vars - 'X-Refer-To-Leave-Untouched': _leave, + 'X-Refer-To-Leave-Untouched': _leave, contact: _contact, ...customHeaders } = req.headers; @@ -1193,6 +1193,7 @@ Duration=${payload.duration} ` headers: { 'Refer-To': `<${stringifyUri(uri)}>`, 'Referred-By': referredby, + 'Contact': this.contactHeader, ...customHeaders } });