Allow masking events on Login when opening the connection#52
Open
adaxi wants to merge 2 commits intomarcelog:masterfrom
Open
Allow masking events on Login when opening the connection#52adaxi wants to merge 2 commits intomarcelog:masterfrom
adaxi wants to merge 2 commits intomarcelog:masterfrom
Conversation
Author
|
Looks like the same was implemented in the PHP version. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have an Asterisk instance that generates a great amount of events. The manager is configured to authorize all events:
My application connects using the Asterisk Management Interface (AMI) but at startup I don't want to be flooded by all events generated by Asterisk. I want to be able to select which events should be transmitted.
Using the Events command I can decide which events should be transmitted. Unfortunately from the moment I login until the moment I submit this command my application is flooded by events.
A non-documented feature of the login action allows us to set the event mask that we are interested in at Login.
This pull request allows you to pass an array of events:
When the events option is omitted Nami does not set the event mask on the login action.
Similar to #13 but less intrusive.