Project

General

Profile

AMP Not stored sender message

Vinoth Rajendran
Added over 3 years ago

To implement message delivery options(single and double ticks) as like Whatsapp,I used to support XEP-0079 and XEP-0184. I achieved XEP-0184 without any issue. When I tried to get implement XEP-0079, I have faced issue like "sender message not stored"

FYI,

We are using Tigase Tigase-7.0.2-b3821 and tigase-message-archiving-1.2.0-20150221.223857-1.jar for archiving messages.

I have attached init.properties file and log file.

Request:

    <message from="556beb846e114b3328bcb54f@192.168.1.149/opsbus_1433260071873" to="556bedee2f06d972339b5867 @192.168.1.149" type="chat" id="1433260859367" isofflinemsg="undefined" xmlns="jabber:client">
        <body>test Amp message</body>
        <custom msgid="86782130-2ae1-4169-aeda-b3f2cf9615ae" />
        <active xmlns="http://jabber .org/protocol/chatstates" />
        <request xmlns="urn:xmpp:receipts" />
        <amp xmlns="http://jabber.org/protocol /amp" per-hop="false">
            <rule action="notify" condition="deliver" value="stored" />
            <rule action="notify" condition="deliver" value="direct" />
        </amp>
    </message>

Response received:

    <message id="1433260859367" from="192.168.1.149" xmlns="jabber:client" to="556beb846e114b3328bcb54f@192.168.1.149/opsbus_1433260071873" type="chat" isofflinemsg="undefined">
        <body>test Amp message</body>
        <custom msgid="86782130-2ae1-4169-aeda-b3f2cf9615ae"></custom>
        <active xmlns="http://jabber.org/protocol/chatstates"></active>
        <request xmlns="urn:xmpp:receipts"></request>
        <amp from="556beb846e114b3328bcb54f@192.168.1.149/opsbus_1433260071873" xmlns="http://jabber.org/protocol/amp" to="556bedee2f06d972339b5867@192.168.1.149" status="notify">
            <rule value="direct" action="notify" condition="deliver"></rule>
        </amp>
    </message>

In receiver side:

<message id="1433261129963" from="556beb846e114b3328bcb54f@192.168.1.149/opsbus_1433260071873" xmlns="jabber:client" to="556bedee2f06d972339b5867@192.168.1.149" type="chat" isofflinemsg="undefined">
    <body>test Amp message</body>
    <custom msgid="cfdd2b90-4ea6-473a-d87a-3c9cc5b6c2f8"></custom>
    <active xmlns="http://jabber.org/protocol/chatstates"></active>
    <request xmlns="urn:xmpp:receipts"></request>
    <amp per-hop="false" xmlns="http://jabber.org/protocol/amp">
        <rule value="stored" action="notify" condition="deliver"></rule>
        <rule value="direct" action="notify" condition="deliver"></rule>
    </amp>
</message>

The issue is, message is not stored for sender (Received messages is stored).

In tig_ma_msgs table two records are created for buddy_id 3(Amp component) and 2(receiver) and no record is there for buddy_id 1(Sender).


Replies (1)

Added by Wojciech Kapcia TigaseTeam over 3 years ago

tig_ma_msgs is unrelated to AMP and is intended for storing user messages upon enabling. Your stanza addressing seems a bit odd. Can you share contents of the tig_ma_msgs and related items for JIDs?

    (1-1/1)