Skip to content

Problem with the function IsEvent #20

Description

@Baruch055

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions