Project

General

Profile

Broadcast message Not responding

Vinoth Rajendran
Added almost 4 years ago

In Tigase 7.0.0 SNAPSHOT, I can broad cast message to user using web UI.

Alternatively, I want to sent message to user using a code. So I sent santza to server its not responding. A following stanza which i have sent to server :

<iq type="set" to="sess-man@192.168.1.94" id="c0eww2">
        <command xmlns="http://jabber.org/protocol/commands" node="http://jabber.org/protocol/admin#announce" action="execute">
            <x xmlns="jabber:x:data" type="submit" xmlns="jabber:x:data">
                <title>Message to online users</title>
                <instructions>Fill out this form to make an announcement to all active users of this service.</instructions>
                <field var="FORM_TYPE" type="hidden">
                    <value>http://jabber.org/protocol/admin</value>
                </field>
                <field var="from-jid" type="jid-single" label="From address">
                    <value>192.168.1.94</value>
                </field>
                <field var="subject" type="text-single">
                    <value>Message from administrators nsg</value>
                </field>
                <field var="msg-type" type="list-single" label="Type">
                    <value>normal</value>
                    <option label="normal">
                        <value>normal</value>
                    </option>
                    <option label="headline">
                        <value>headline</value>
                    </option>
                    <option label="chat">
                        <value>chat</value>
                    </option>
                </field>
                <field var="announcement" type="text-multi">
                    <value/><value>test msg</value>
                </field>
                <field var="notify-cluster" type="hidden">
                    <value>true</value>
                </field>
            </x>
        </command>
    </iq>

How can I send message to user using a code?

and one more thing Is there Broadcast message feature available in Tigase 5.2.3?


Replies (1)

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam almost 4 years ago

If you can send a broadcast message using WEB UI, then mu suggestion is to look at the exact message being sent from web UI and make sure your code is sending the same exact thing.

Yes, the version 5.2.3 supports the same exact broadcast message feature.

    (1-1/1)