fix: capture on making a call
This commit is contained in:
parent
d77643b3e8
commit
accccc95b8
@ -197,6 +197,7 @@ import { Device } from '@twilio/voice-sdk'
|
|||||||
import { useDraggable, useWindowSize } from '@vueuse/core'
|
import { useDraggable, useWindowSize } from '@vueuse/core'
|
||||||
import { globalStore } from '@/stores/global'
|
import { globalStore } from '@/stores/global'
|
||||||
import { contactsStore } from '@/stores/contacts'
|
import { contactsStore } from '@/stores/contacts'
|
||||||
|
import { capture } from '@/telemetry'
|
||||||
import { Avatar, call } from 'frappe-ui'
|
import { Avatar, call } from 'frappe-ui'
|
||||||
import { onMounted, ref, watch } from 'vue'
|
import { onMounted, ref, watch } from 'vue'
|
||||||
|
|
||||||
@ -403,6 +404,8 @@ async function makeOutgoingCall(number) {
|
|||||||
showCallPopup.value = true
|
showCallPopup.value = true
|
||||||
callStatus.value = 'initiating'
|
callStatus.value = 'initiating'
|
||||||
|
|
||||||
|
capture('make_outgoing_call')
|
||||||
|
|
||||||
_call.on('messageReceived', (message) => {
|
_call.on('messageReceived', (message) => {
|
||||||
let info = message.content
|
let info = message.content
|
||||||
callStatus.value = info.CallStatus
|
callStatus.value = info.CallStatus
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user