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

Method bridgeAddChannel

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

Source from the content-addressed store, hash-verified

9)
10
11func (s *Server) bridgeAddChannel(ctx context.Context, reply string, req *proxy.Request) {
12 channel := req.BridgeAddChannel.Channel
13
14 // bind dialog
15 if req.Key.Dialog != "" {
16 s.Dialog.Bind(req.Key.Dialog, "bridge", req.Key.ID)
17 s.Dialog.Bind(req.Key.Dialog, "channel", channel)
18 }
19
20 err := s.ari.Bridge().AddChannel(req.Key, channel)
21 if err != nil {
22 s.sendError(reply, err)
23 return
24 }
25
26 s.sendError(reply, nil)
27}
28
29func (s *Server) bridgeCreate(ctx context.Context, reply string, req *proxy.Request) {
30 // bind dialog

Callers

nothing calls this directly

Calls 4

sendErrorMethod · 0.95
AddChannelMethod · 0.80
BridgeMethod · 0.80
BindMethod · 0.65

Tested by

no test coverage detected