https://github.com/staskobzar/goami2/blob/master/message.go#L110
// IsEvent returns true if message is event
func (m *Message) IsEvent() bool {
return len(m.Field("Event")) > 0
}
The function suddenly stopped working for me,
A quick check found that the name in the message coming from Asterisk had changed from "Event" to "event".
The question is, has anyone else encountered this problem?
If so, I'd be happy for you to write here, and I'll submit a PR.
https://github.com/staskobzar/goami2/blob/master/message.go#L110
The function suddenly stopped working for me,
A quick check found that the name in the message coming from Asterisk had changed from "Event" to "event".
The question is, has anyone else encountered this problem?
If so, I'd be happy for you to write here, and I'll submit a PR.