mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-04 02:04:12 +00:00
add custom nye headers to completed hook (#1552)
This commit is contained in:
@@ -124,6 +124,14 @@ class CallInfo {
|
||||
return this._customerData;
|
||||
}
|
||||
|
||||
set sipHeaders(obj) {
|
||||
this._sipHeaders = obj;
|
||||
}
|
||||
|
||||
get sipHeaders() {
|
||||
return this._sipHeaders;
|
||||
}
|
||||
|
||||
toJSON() {
|
||||
const obj = {
|
||||
callSid: this.callSid,
|
||||
@@ -150,6 +158,10 @@ class CallInfo {
|
||||
Object.assign(obj, {customerData: this._customerData});
|
||||
}
|
||||
|
||||
if (this._sipHeaders) {
|
||||
Object.assign(obj, {headers: this._sipHeaders});
|
||||
}
|
||||
|
||||
if (JAMBONES_API_BASE_URL) {
|
||||
Object.assign(obj, {apiBaseUrl: JAMBONES_API_BASE_URL});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user