Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http notification plugin #684

Merged
merged 22 commits into from
Apr 5, 2016
Merged

http notification plugin #684

merged 22 commits into from
Apr 5, 2016

Conversation

bartekgorny
Copy link
Collaborator

This is the vooolll's mod_http_notification, with fixes. Also, maybe it would be worthwhile to install some safety valve in case there's lot of messages and http service does not respond - we have to discuss it.

Type = exml_query:attr(Packet, <<"type">>, <<>>),
Body = exml_query:path(Packet, [{element, <<"body">>}, cdata], <<>>),
Mod = get_callback_module(),
case Mod:should_make_req(Type, Body, From, To) of
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about passing Packet instead of Type and Body to the callback function and doing whatever is need in the implementation? This would allow us to write more accurate checkers.

@vooolll
Copy link
Contributor

vooolll commented Feb 24, 2016

@bartekgorny Thanks a lot for your work, have a problem with finishing my pr's.

@michalwski michalwski merged commit bc95413 into esl:master Apr 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants