(key *ari.Key, channelID string, options *ari.BridgeAddChannelOptions)
| 78 | } |
| 79 | |
| 80 | func (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 | |
| 97 | func (b *bridge) RemoveChannel(key *ari.Key, channelID string) error { |
| 98 | return b.c.commandRequest(&proxy.Request{ |
no test coverage detected