From 7c629e6faf716e214782d717334e87d8f1f56895 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Wed, 11 Aug 2021 10:47:10 -0400 Subject: [PATCH] bugfix: customerData in webhooks was being snake-cased --- lib/session/call-session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/session/call-session.js b/lib/session/call-session.js index c5b1322b..1c6ac981 100644 --- a/lib/session/call-session.js +++ b/lib/session/call-session.js @@ -909,7 +909,7 @@ class CallSession extends Emitter { this.callInfo.updateCallStatus(callStatus, sipStatus); if (typeof duration === 'number') this.callInfo.duration = duration; try { - this.notifier.request(this.call_status_hook, this.callInfo); + this.notifier.request(this.call_status_hook, this.callInfo.toJSON()); } catch (err) { this.logger.info(err, `CallSession:_notifyCallStatusChange error sending ${callStatus} ${sipStatus}`); }