CyCoreSystems / ari

Golang Asterisk REST Interface (ARI) library
Apache License 2.0
180 stars 74 forks source link

subscribe to channel events , get all event's of other channels #153

Open AyaMagdyMohamed opened 1 year ago

AyaMagdyMohamed commented 1 year ago

Hello i make subscribtion of event's of specific channel , but i receive events of another channel as well

channel := ca.ariClient.Channel().Get(ca.leg.Key())

sub := channel.Subscribe(ari.Events.All) go func() { for { isDone := false e := <-sub.Events() fmt.Println("---------Receive event: ---------------", e) } }

here e print all events of all channels