mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
fix: do not run snake case for customer data (#861)
This commit is contained in:
@@ -135,15 +135,10 @@ class Conference extends Task {
|
|||||||
* @param {SipDialog} dlg
|
* @param {SipDialog} dlg
|
||||||
*/
|
*/
|
||||||
async _init(cs, dlg) {
|
async _init(cs, dlg) {
|
||||||
const friendlyName = this.confName;
|
|
||||||
const {createHash, retrieveHash} = cs.srf.locals.dbHelpers;
|
const {createHash, retrieveHash} = cs.srf.locals.dbHelpers;
|
||||||
|
this.friendlyName = this.confName;
|
||||||
this.confName = `conf:${cs.accountSid}:${this.confName}`;
|
this.confName = `conf:${cs.accountSid}:${this.confName}`;
|
||||||
|
|
||||||
this.statusParams = Object.assign({
|
|
||||||
conferenceSid: this.confName,
|
|
||||||
friendlyName
|
|
||||||
}, cs.callInfo);
|
|
||||||
|
|
||||||
// check if conference is in progress
|
// check if conference is in progress
|
||||||
const obj = await retrieveHash(this.confName);
|
const obj = await retrieveHash(this.confName);
|
||||||
if (obj) {
|
if (obj) {
|
||||||
@@ -693,8 +688,24 @@ class Conference extends Task {
|
|||||||
if (!params.time) params.time = (new Date()).toISOString();
|
if (!params.time) params.time = (new Date()).toISOString();
|
||||||
if (!params.members && typeof this.participantCount === 'number') params.members = this.participantCount;
|
if (!params.members && typeof this.participantCount === 'number') params.members = this.participantCount;
|
||||||
cs.application.requestor
|
cs.application.requestor
|
||||||
.request('verb:hook', this.statusHook, Object.assign(params, this.statusParams, httpHeaders))
|
.request(
|
||||||
.catch((err) => this.logger.info(err, 'Conference:notifyConferenceEvent - error'));
|
'verb:hook',
|
||||||
|
this.statusHook,
|
||||||
|
Object.assign(
|
||||||
|
params,
|
||||||
|
Object.assign(
|
||||||
|
{
|
||||||
|
conferenceSid: this.confName,
|
||||||
|
friendlyName: this.friendlyName,
|
||||||
|
},
|
||||||
|
cs.callInfo.toJSON()
|
||||||
|
),
|
||||||
|
httpHeaders
|
||||||
|
)
|
||||||
|
)
|
||||||
|
.catch((err) =>
|
||||||
|
this.logger.info(err, 'Conference:notifyConferenceEvent - error')
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -441,7 +441,7 @@ class SingleDialer extends Emitter {
|
|||||||
});
|
});
|
||||||
app.requestor.request('session:adulting', '/adulting', {
|
app.requestor.request('session:adulting', '/adulting', {
|
||||||
...cs.callInfo.toJSON(),
|
...cs.callInfo.toJSON(),
|
||||||
parentCallInfo: this.parentCallInfo
|
parentCallInfo: this.parentCallInfo.toJSON()
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
newLogger.error({err}, 'doAdulting: error sending adulting request');
|
newLogger.error({err}, 'doAdulting: error sending adulting request');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user