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

Method bridgeRemoveChannel

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

Source from the content-addressed store, hash-verified

226}
227
228func (s *Server) bridgeRemoveChannel(ctx context.Context, reply string, req *proxy.Request) {
229 // bind dialog
230 if req.Key.Dialog != "" {
231 s.Dialog.Bind(req.Key.Dialog, "bridge", req.Key.ID)
232 s.Dialog.Bind(req.Key.Dialog, "channel", req.BridgeRemoveChannel.Channel)
233 }
234
235 err := s.ari.Bridge().RemoveChannel(req.Key, req.BridgeRemoveChannel.Channel)
236 if err != nil {
237 s.sendError(reply, err)
238 return
239 }
240
241 s.sendError(reply, nil)
242}
243
244func (s *Server) bridgeSubscribe(ctx context.Context, reply string, req *proxy.Request) {
245 // bind dialog

Callers

nothing calls this directly

Calls 4

sendErrorMethod · 0.95
RemoveChannelMethod · 0.80
BridgeMethod · 0.80
BindMethod · 0.65

Tested by

no test coverage detected