how to send announce messages using php

HI

I have run ejabberd server 2.1.10 in ubuntu 10.04 .

I have configure mod_announce .
It is working with ejabberd clients like (pidgin,gajim)
But i need it is working with php scripts.
Any possibility's there .
Any body please help

You could use mod_admin_extra

You could use mod_admin_extra to enable ejabberdctl commands "send_message_headline" and "send_message_chat"

Hi I have to send message to

Hi

I have to send message to all online users in my server and it should be pushed to all the offline users.
Can you let me konw how to do these both?

https://git.process-one.net/e

Hi I have found this,to how

Hi

I have found this,to how to send announcement message in ejabberd client.
But i need to send messages in server level or using php scripts.
Pls tell any possibility's there?

If you can send a message to

If you can send a message to a special jid (using mod_announce); and can send a message as any user to any user using command line (ejabberdctl) using mod_admin_extra; then I assume you could try to combine these two to call ejabberdctl from any script (like php, or whatever), to send a message to that special account.

I didn't try it myself. But it looks like pretty evident. If you already have tried this, and it doesn't work for some reason, then you should explicitly decribe your steps, so that others don't need to guess, and could offer some other approach.

HI What do you mean by

HI

What do you mean by special account,this should be shared roster group or roster group?
Can you tell syntax of special jid?
Reply pls

Have you thoughtfully read

Hi Thanks a lot !!! Now i can

Hi

Thanks a lot !!!

Now i can able to send announce message to online users.
But how to send all users with offline.
Pls help

Everything is there.

Everything is there.

Syndicate content