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

Method AddChannelWithOptions

client/bridge.go:80–95  ·  view source on GitHub ↗
(key *ari.Key, channelID string, options *ari.BridgeAddChannelOptions)

Source from the content-addressed store, hash-verified

78}
79
80func (b *bridge) AddChannelWithOptions(key *ari.Key, channelID string, options *ari.BridgeAddChannelOptions) error {
81 if options == nil {
82 options = new(ari.BridgeAddChannelOptions)
83 }
84
85 return b.c.commandRequest(&proxy.Request{
86 Kind: "BridgeAddChannel",
87 Key: key,
88 BridgeAddChannel: &proxy.BridgeAddChannel{
89 Channel: channelID,
90 AbsorbDTMF: options.AbsorbDTMF,
91 Mute: options.Mute,
92 Role: options.Role,
93 },
94 })
95}
96
97func (b *bridge) RemoveChannel(key *ari.Key, channelID string) error {
98 return b.c.commandRequest(&proxy.Request{

Callers 1

AddChannelMethod · 0.95

Calls 1

commandRequestMethod · 0.80

Tested by

no test coverage detected