Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

Multi User Chat - Room join invitation throws error 406

$
0
0

Hello ,

 

     We are implement MUC chat in one android application using Asmack library .I create one room .I send invitation to another user .

 

Where vijay sends invitation to rajesh. Using android app.

 

Asmack (Android) code :

 

public void joinGroup123() {

 

        try {

            // Xmpp Connection object

            XMPPConnection connection = XMPPLogic.getInstance().getConnection();

 

            //Create Multi User Chat object for group/room    "abc@conference.mysite.co"

            MultiUserChat muc = new MultiUserChat(connection,"abc@conference.mysite.co");

 

            //Invited person rajesh@mysite.co

            muc.invite("rajesh@mysite.co", "Invitation Message");

 

        } catch (Exception e) {

 

            e.printStackTrace();

            Log.e(TAG, "erro Invite time " + e.toString());

        }

 

    }

 

 

Invitation Request :

 

C2S - RECV (1559343451): <message id="tyrHW-11" to="abc@conference.mysite.co"><x xmlns="http://jabber.org/protocol/muc#user"><invite  to="rajesh@mysite.co/Smack"><reason>Join me for a group chat! testing again</reason></invite></x></message>

 

Server Response :

 

C2S - SENT (1559343451): <message id="tyrHW-11" to="vijay@mysite.co/Smack" from="abc@conference.mysite.co" type="error"><x xmlns="http://jabber.org/protocol/muc#user"><invite to="rajesh@mysite.co/Smack"><reason>Join me for a group chat! testing again</reason></invite></x><error code="406" type="modify"><not-acceptable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></message>

 

 

in server response i get error . i cant understand what this error says. please help .


Viewing all articles
Browse latest Browse all 10742

Trending Articles