From 24d9740618656586076f61f7348269020165e8a2 Mon Sep 17 00:00:00 2001 From: Sam Machin Date: Sun, 29 Mar 2026 21:19:15 +0100 Subject: [PATCH] add x-reason to sip-decline (#1518) * add x-ver to sip-decline * lint * Update sip_decline.js --------- Co-authored-by: Dave Horton --- lib/tasks/sip_decline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/sip_decline.js b/lib/tasks/sip_decline.js index d293bb79..3f179983 100644 --- a/lib/tasks/sip_decline.js +++ b/lib/tasks/sip_decline.js @@ -17,7 +17,7 @@ class TaskSipDecline extends Task { async exec(cs, {res}) { super.exec(cs); res.send(this.data.status, this.data.reason, { - headers: this.headers + headers: {'X-Reason': 'SIP Decline Verb', ...this.headers} }, (err) => { if (!err) { // Call was successfully declined