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

Method Create

client/bridge.go:13–26  ·  view source on GitHub ↗
(key *ari.Key, btype, name string)

Source from the content-addressed store, hash-verified

11}
12
13func (b *bridge) Create(key *ari.Key, btype, name string) (*ari.BridgeHandle, error) {
14 k, err := b.c.createRequest(&proxy.Request{
15 Kind: "BridgeCreate",
16 Key: key,
17 BridgeCreate: &proxy.BridgeCreate{
18 Type: btype,
19 Name: name,
20 },
21 })
22 if err != nil {
23 return nil, err
24 }
25 return ari.NewBridgeHandle(k, b, nil), nil
26}
27
28func (b *bridge) StageCreate(key *ari.Key, btype, name string) (*ari.BridgeHandle, error) {
29 k, err := b.c.createRequest(&proxy.Request{

Callers 9

StageCreateMethod · 0.95
ensureBridgeFunction · 0.45
createCallFunction · 0.45
TestBridgeCreateFunction · 0.45
TestLoggingCreateFunction · 0.45
TestChannelCreateFunction · 0.45
bridgeCreateMethod · 0.45
asteriskLoggingCreateMethod · 0.45
channelCreateMethod · 0.45

Calls 1

createRequestMethod · 0.80

Tested by 3

TestBridgeCreateFunction · 0.36
TestLoggingCreateFunction · 0.36
TestChannelCreateFunction · 0.36