ejabberd_system_monitor:send_message not working in iq handler

Dear All,

I want to send message from server to a specific user or groupchat in a iq handler by using ejabberd_system_monitor:send_message(From, To, "Message", []),

But the message is not send to the user and there is no error at all.

where the message gone ? is it the right way to send message from server to client in iq handler ?

Thanks.

See how send_message in

See how send_message in mod_admin_extra.erl does it.

Yes, it is working, Thanks.

Yes, it is working, Thanks.

Hello, how can i send message

Hello, how can i send message empty body to user with child tag ?

Example :

< message to='iphone@ejabberd.local' id='R5p2A-287' type='chat' >
< modify xmlns='jabber:client:modify' type='1' >XXXXXXXXXXXX< /modify >
< /message >

Syndicate content