GithubHelp home page GithubHelp logo

nimrodda / mod_offline_http_post Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spyy/mod_http_offline

4.0 4.0 7.0 19 KB

Ejabberd 16.08 module to send offline user's message via POST request to target URL

License: Other

Erlang 87.97% Shell 4.57% Ruby 7.46%

mod_offline_http_post's People

Contributors

budhead avatar nimrodda avatar raelmax avatar spyy avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mod_offline_http_post's Issues

Syntax error at line 43

https://github.com/Nimrodda/mod_offline_http_post/blob/master/src/mod_offline_http_post.erl#L43

after I change the line to

Data = string:join([binary_to_list(AuthTokenKey), binary_to_list(Token), "&to=", binary_to_list(ToUser), "&from=", binary_to_list(FromUser), "&vhost=", binary_to_list(Vhost), "&body=", binary_to_list(Body), "&messageId=", binary_to_list(MessageId)]),

The mod crash with this log:

23:20:29.787 [error] Hook offline_message_hook crashed when running mod_offline_http_post:create_message/1:
** Reason = {error,function_clause,[{mod_offline_http_post,create_message,[{file,"/Users/thang2410199/.ejabberd-modules/sources/mod_offline_http_post/src/mod_offline_http_post.erl"},{line,24}],[{bounce,{message,<<"purplec5bd947f">>,chat,<<"en">>,{jid,<<"nhat">>,<<"localhost">>,<<"Thangs-MacBook-Pro">>,<<"nhat">>,<<"localhost">>,<<"Thangs-MacBook-Pro">>},{jid,<<"tung">>,<<"localhost">>,<<>>,<<"tung">>,<<"localhost">>,<<>>},[],[],undefined,[{xmlel,<<"composing">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/chatstates">>}],[]}],#{ip => {0,0,0,0,0,0,0,1}}}}]},{ejabberd_hooks,safe_apply,[{file,"src/ejabberd_hooks.erl"},{line,380}],4},{ejabberd_hooks,run_fold1,[{file,"src/ejabberd_hooks.erl"},{line,364}],4},{ejabberd_sm,route,[{file,"src/ejabberd_sm.erl"},{line,138}],1},{ejabberd_local,route,[{file,"src/ejabberd_local.erl"},{line,116}],1},{ejabberd_router,do_route,[{file,"src/ejabberd_router.erl"},{line,348}],1},{ejabberd_router,route,[{file,"src/ejabberd_router.erl"},{line,87}],1},{ejabberd_c2s,check_privacy_then_route,[{file,"src/ejabberd_c2s.erl"},{line,797}],2}]}
** Arguments = [{bounce,{message,<<"purplec5bd947f">>,chat,<<"en">>,{jid,<<"nhat">>,<<"localhost">>,<<"Thangs-MacBook-Pro">>,<<"nhat">>,<<"localhost">>,<<"Thangs-MacBook-Pro">>},{jid,<<"tung">>,<<"localhost">>,<<>>,<<"tung">>,<<"localhost">>,<<>>},[],[],undefined,[{xmlel,<<"composing">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/chatstates">>}],[]}],#{ip => {0,0,0,0,0,0,0,1}}}}]

ejabberd-19.02

I am unable to install this module on ejaberd-19.02.
After installing ejabberd the path cd /opt/ejabberd-19.02/.ejabberd-module/sources/ does not exist.
I create and execute too many commands but the module does not install.

Does this module support handling offline messages of MUC groups?

I have installed this module and am working with it. For one to one messages it working perfectly. But for group messages it not working? In a group for A and B, if B leaves the room and A send a message. At this time the URL is not called. But when user B comes online the messages is coming. I am testing using pidgin.

Windows installtion

Hi,

Can you please guide me how can I install this module in windows server.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.