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

Method Record

client/channel.go:361–374  ·  view source on GitHub ↗
(key *ari.Key, name string, opts *ari.RecordingOptions)

Source from the content-addressed store, hash-verified

359}
360
361func (c *channel) Record(key *ari.Key, name string, opts *ari.RecordingOptions) (*ari.LiveRecordingHandle, error) {
362 rb, err := c.c.createRequest(&proxy.Request{
363 Kind: "ChannelRecord",
364 Key: key,
365 ChannelRecord: &proxy.ChannelRecord{
366 Name: name,
367 Options: opts,
368 },
369 })
370 if err != nil {
371 return nil, err
372 }
373 return ari.NewLiveRecordingHandle(rb.New(ari.LiveRecordingKey, name), c.c.LiveRecording(), nil), nil
374}
375
376func (c *channel) StageRecord(key *ari.Key, name string, opts *ari.RecordingOptions) (*ari.LiveRecordingHandle, error) {
377 k, err := c.c.getRequest(&proxy.Request{

Callers 1

StageRecordMethod · 0.95

Calls 3

createRequestMethod · 0.80
NewMethod · 0.80
LiveRecordingMethod · 0.80

Tested by

no test coverage detected