-
Notifications
You must be signed in to change notification settings - Fork 1
/
conversation_callback.go
33 lines (27 loc) · 1.52 KB
/
conversation_callback.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package gcloudcx
import (
"time"
"github.com/google/uuid"
)
// ConversationCallback describes a Callback (like belonging to Participant)
type ConversationCallback struct {
ID uuid.UUID `json:"id"`
State string `json:"state"` // alerting,dialing,contacting,offering,connected,disconnected,terminated,converting,uploading,transmitting,scheduled,none
Direction string `json:"direction"` // inbound,outbound
Held bool `json:"held"`
ConnectedTime time.Time `json:"connectedTime"`
DisconnectedTime time.Time `json:"disconnectedTime"`
StartAlertingTime time.Time `json:"startAlertingTime"`
StartHoldTime time.Time `json:"startHoldTime"`
ScheduledTime time.Time `json:"callbackScheduledTime"`
DisconnectType string `json:"disconnectType"` // endpoint,client,system,transfer,timeout,transfer.conference,transfer.consult,transfer.forward,transfer.noanswer,transfer.notavailable,transport.failure,error,peer,other,spam,uncallable
Segments []Segment `json:"segments"`
Provider string `json:"provider"`
PeerID string `json:"peerId"`
DialerPreview *DialerPreview `json:"dialerPreview"`
Voicemail *Voicemail `json:"voicemail"`
CallbackNumbers []string `json:"callbackNumbers"`
CallbackUserName string `json:"callbackUserName"`
ScriptID string `json:"scriptId"`
AutomatedCallbackConfigID string `json:"automatedCallbackConfigId"`
}