MCPcopy Create free account
hub / github.com/CyCoreSystems/ari-proxy / Subscribe

Method Subscribe

client/liveRecording.go:81–95  ·  view source on GitHub ↗
(key *ari.Key, n ...string)

Source from the content-addressed store, hash-verified

79}
80
81func (l *liveRecording) Subscribe(key *ari.Key, n ...string) ari.Subscription {
82 err := l.c.commandRequest(&proxy.Request{
83 Kind: "RecordingLiveSubscribe",
84 Key: key,
85 })
86 if err != nil {
87 l.c.log.Warn("failed to call liveRecording Subscribe")
88 if key.Dialog != "" {
89 l.c.log.Error("dialog present; failing")
90 return nil
91 }
92 }
93
94 return l.c.Bus().Subscribe(key, n...)
95}

Callers

nothing calls this directly

Calls 3

commandRequestMethod · 0.80
BusMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected