diff --git a/packages/adapter-ameyo/lib/callStateManager.ts b/packages/adapter-ameyo/lib/callStateManager.ts index c3fc651..d1f01da 100644 --- a/packages/adapter-ameyo/lib/callStateManager.ts +++ b/packages/adapter-ameyo/lib/callStateManager.ts @@ -97,7 +97,7 @@ class CallStateManager { type: MessagingType.ON_AMEYO_CALL_INCOMING, data: this.state.customerInfo }); - this.metricProcessor?.pushCounterMetric({ + this?.metricProcessor?.pushCounterMetric({ metricName: 'ringing_event_counter', flow: "ringing_event_counter" }); @@ -133,7 +133,7 @@ class CallStateManager { const parsedQuery = parseQuerystring(crmURL); const userCRTObjectId = parsedQuery?.userCrtObjectId?.replaceAll('%40', '@'); - this.metricProcessor?.pushCounterMetric({ + this?.metricProcessor?.pushCounterMetric({ metricName: 'notify_push_event_counter', flow: "notify_push_event_counter" });