Project

General

Profile

I cannot use PubSub to get a project publication notification for the node owner

连生 张
Added 3 months ago

After I created the node with admin user admin1 subscribed to the node, admin1 user was not notified when admin published the project on the node


Replies (6)

(2)

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam 3 months ago

What do you mean by saying that user admin1 was not notified? Message with notification was correctly sent by the PubSub component and delivered to the user admin1 XMPP client, right?

(1)

Added by 连生 张 3 months ago

I cannot create a PubSub node using the http-api

(1)

Added by Wojciech Kapcia TigaseTeam 3 months ago

连生 张 wrote:

I cannot create a PubSub node using the http-api

It looks like you are using custom implementation - please try to reproduce it distribution packages offered by us and offer step-by-step how to reproduce the issue.

(1)

Added by 连生 张 3 months ago

Thank you very much for your help. I have solved this problem through IQ message, but I would like to know the role of the following configurations

<iq type='set'
    from='hamlet@denmark.lit/elsinore'
    to='pubsub.shakespeare.lit'
    id='create1'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
    <create node='princely_musings'/>
    <configure>
      <x xmlns='jabber:x:data' type='submit'>
        <field var='FORM_TYPE' type='hidden'>
          <value>http://jabber.org/protocol/pubsub#node_config</value>
        </field>
        <field var='pubsub#title'><value>Princely Musings (Atom)</value></field>
        <field var='pubsub#deliver_notifications'><value>1</value></field>
        <field var='pubsub#deliver_payloads'><value>1</value></field>
        <field var='pubsub#persist_items'><value>1</value></field>
        <field var='pubsub#max_items'><value>10</value></field>
        <field var='pubsub#item_expire'><value>604800</value></field>
        <field var='pubsub#access_model'><value>open</value></field>
        <field var='pubsub#publish_model'><value>publishers</value></field>
        <field var='pubsub#purge_offline'><value>0</value></field>
        <field var='pubsub#send_last_published_item'><value>never</value></field>
        <field var='pubsub#presence_based_delivery'><value>false</value></field>
        <field var='pubsub#notification_type'><value>headline</value></field>
        <field var='pubsub#notify_config'><value>0</value></field>
        <field var='pubsub#notify_delete'><value>0</value></field>
        <field var='pubsub#notify_retract'><value>0</value></field>
        <field var='pubsub#notify_sub'><value>0</value></field>
        <field var='pubsub#max_payload_size'><value>1028</value></field>
        <field var='pubsub#type'><value>http://www.w3.org/2005/Atom</value></field>
        <field var='pubsub#body_xslt'>
          <value>http://jabxslt.jabberstudio.org/atom_body.xslt</value>
        </field>
      </x>
    </configure>
  </pubsub>
</iq>
(1)

Added by 连生 张 3 months ago

I need to know what these configurations do and what am I going to do

Added by Wojciech Kapcia TigaseTeam 3 months ago

All options are described in PubSub specification: Configure Subscription Options

    (1-6/6)