nimrodda / mod_offline_http_post Goto Github PK
View Code? Open in Web Editor NEWThis project forked from spyy/mod_http_offline
Ejabberd 16.08 module to send offline user's message via POST request to target URL
License: Other
This project forked from spyy/mod_http_offline
Ejabberd 16.08 module to send offline user's message via POST request to target URL
License: Other
Hi,
Can you please guide me how can I install this module in windows server.
Thanks
I have version 19.05 and its not working.
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.
Could you help me to add this module in ejabberd-18.12.1?
Ejabberd-18.12.1 running on CentOS7.
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.
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}}}}]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.