mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
fix customerdata should not be snakeCase
This commit is contained in:
@@ -144,7 +144,7 @@ class CallInfo {
|
||||
if (typeof this.duration === 'number') obj.duration = this.duration;
|
||||
|
||||
if (this._customerData) {
|
||||
Object.assign(obj, {customerData: this._customerData});
|
||||
Object.assign(obj, {customerdata: this._customerData});
|
||||
}
|
||||
|
||||
if (JAMBONES_API_BASE_URL) {
|
||||
|
||||
@@ -68,7 +68,7 @@ class TaskRestDial extends Task {
|
||||
const b3 = this.getTracingPropagation();
|
||||
const httpHeaders = b3 && {b3};
|
||||
const params = {
|
||||
...cs.callInfo,
|
||||
...cs.callInfo.toJSON(),
|
||||
defaults: {
|
||||
synthesizer: {
|
||||
vendor: cs.speechSynthesisVendor,
|
||||
|
||||
@@ -87,7 +87,7 @@ class HttpRequestor extends BaseRequestor {
|
||||
|
||||
assert(HookMsgTypes.includes(type));
|
||||
|
||||
const payload = params ? snakeCaseKeys(params, ['sip']) : null;
|
||||
const payload = params ? snakeCaseKeys(params, ['customerdata', 'sip']) : null;
|
||||
const url = hook.url || hook;
|
||||
const method = hook.method || 'POST';
|
||||
let buf = '';
|
||||
|
||||
Reference in New Issue
Block a user