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

Method Record

client/bridge.go:171–191  ·  view source on GitHub ↗
(key *ari.Key, name string, opts *ari.RecordingOptions)

Source from the content-addressed store, hash-verified

169}
170
171func (b *bridge) Record(key *ari.Key, name string, opts *ari.RecordingOptions) (*ari.LiveRecordingHandle, error) {
172 if opts == nil {
173 opts = &ari.RecordingOptions{}
174 }
175 if name == "" {
176 name = rid.New(rid.Recording)
177 }
178
179 k, err := b.c.createRequest(&proxy.Request{
180 Kind: "BridgeRecord",
181 Key: key,
182 BridgeRecord: &proxy.BridgeRecord{
183 Name: name,
184 Options: opts,
185 },
186 })
187 if err != nil {
188 return nil, err
189 }
190 return ari.NewLiveRecordingHandle(k.New(ari.LiveRecordingKey, name), b.c.LiveRecording(), nil), nil
191}
192
193func (b *bridge) StageRecord(key *ari.Key, name string, opts *ari.RecordingOptions) (*ari.LiveRecordingHandle, error) {
194 if opts == nil {

Callers 6

StageRecordMethod · 0.95
appStartFunction · 0.45
TestBridgeRecordFunction · 0.45
TestChannelRecordFunction · 0.45
bridgeRecordMethod · 0.45
channelRecordMethod · 0.45

Calls 3

NewMethod · 0.80
createRequestMethod · 0.80
LiveRecordingMethod · 0.80

Tested by 2

TestBridgeRecordFunction · 0.36
TestChannelRecordFunction · 0.36