Giter VIP home page Giter VIP logo

Comments (8)

woj-tek avatar woj-tek commented on July 29, 2024

You configured strict delivery rules, therefore we are following Message delivery rules to the dot:

For a message stanza of type "normal", "groupchat", or "headline", the server MUST either (a) silently ignore the stanza or (b) return an error stanza to the sender, which SHOULD be .

You can try setting message type to chat

from tigase-server.

godpit avatar godpit commented on July 29, 2024

The type of message was chat. But the message was not stored in the database.

from tigase-server.

godpit avatar godpit commented on July 29, 2024

The from of message was xxx@yyy/pc, and the to of the message was bbb@yyy/phone,

from tigase-server.

godpit avatar godpit commented on July 29, 2024

The toJid of the message was a full JID, such as:
JID fromJid = JID.jidInstance("A", "xmpp.server");
JID toJid = JID.jidInstance("B", "xmpp.server", "phone");

So, when the client B was offline, i need the message was stored in the tig_offline_message with resource.

Because the message would not be handled within some client, such as pc, some client (such as phone) would handle the message.

However, when the phone client was not online, the message would be stored in the tig_offline_message.
The message would resent to the phone client until the phone client was online.

from tigase-server.

woj-tek avatar woj-tek commented on July 29, 2024

Thank you for the detailed description. We will investigate it further and let you know the outcome.

from tigase-server.

woj-tek avatar woj-tek commented on July 29, 2024

As the linked specification says:

For a message stanza of type "chat":

  • If there is no available or connected resource, the server MUST either (a) store the message offline for later delivery or (b) return an error stanza to the sender, which SHOULD be .

For the strict configuration we opted for the (b) option. If you want messages stored for offlien delivery you should use inteligent configuration of 'delivery-rules'

from tigase-server.

godpit avatar godpit commented on July 29, 2024

For inteligent configuration, it was possible that the message would resent the pc client without handling the message, when the pc client was online. However, the pc client did not handle the message, so the message would be lost. But i just wanted the phone client handled the message.
So, how can i solve it? Thanks a lot!

from tigase-server.

woj-tek avatar woj-tek commented on July 29, 2024

Best way to handle it would be to use both/or any of the:

from tigase-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.