mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-04 02:04:12 +00:00
add x-reason to sip-decline (#1518)
* add x-ver to sip-decline * lint * Update sip_decline.js --------- Co-authored-by: Dave Horton <daveh@beachdognet.com>
This commit is contained in:
co-authored by
Dave Horton
parent
39746598b5
commit
24d9740618
@@ -17,7 +17,7 @@ class TaskSipDecline extends Task {
|
|||||||
async exec(cs, {res}) {
|
async exec(cs, {res}) {
|
||||||
super.exec(cs);
|
super.exec(cs);
|
||||||
res.send(this.data.status, this.data.reason, {
|
res.send(this.data.status, this.data.reason, {
|
||||||
headers: this.headers
|
headers: {'X-Reason': 'SIP Decline Verb', ...this.headers}
|
||||||
}, (err) => {
|
}, (err) => {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
// Call was successfully declined
|
// Call was successfully declined
|
||||||
|
|||||||
Reference in New Issue
Block a user