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

Method bridgeVideoSource

server/bridge.go:258–272  ·  view source on GitHub ↗
(ctx context.Context, reply string, req *proxy.Request)

Source from the content-addressed store, hash-verified

256}
257
258func (s *Server) bridgeVideoSource(ctx context.Context, reply string, req *proxy.Request) {
259 // bind dialog
260 if req.Key.Dialog != "" {
261 s.Dialog.Bind(req.Key.Dialog, "bridge", req.Key.ID)
262 s.Dialog.Bind(req.Key.Dialog, "channel", req.BridgeVideoSource.Channel)
263 }
264
265 err := s.ari.Bridge().VideoSource(req.Key, req.BridgeVideoSource.Channel)
266 if err != nil {
267 s.sendError(reply, err)
268 return
269 }
270
271 s.sendError(reply, nil)
272}
273
274func (s *Server) bridgeVideoSourceDelete(ctx context.Context, reply string, req *proxy.Request) {
275 // bind dialog

Callers

nothing calls this directly

Calls 4

sendErrorMethod · 0.95
VideoSourceMethod · 0.80
BridgeMethod · 0.80
BindMethod · 0.65

Tested by

no test coverage detected