Connection problem

I am getting the error: joe@192.168.1.11406Not Acceptable

I send the following:

<stream:stream to=“192.168.1.11” xmlns=“jabber:client” xmlns:stream=“http://etherx.jabber.org/streams”>

joe@192.168.1.11

and receive the following:

<?xml version=''1.0''?>

<iq id=’‘DL7uB-0’’ type=’‘error’’><query xmlns=’‘jabber:iq:auth’’>joe@192.168.1.11

<error code=’‘406’’>Not Acceptable

Here is my code:

try

{

org.jivesoftware.smack.XMPPConnection.DEBUG_ENABLED = true;

org.jivesoftware.smack.XMPPConnection conn1 = new org.jivesoftware.smack.XMPPConnection(JabberServerHostname.toString());

conn1.login("joe@192.168.1.11",“joe”);

org.jivesoftware.smack.Chat chat1 = conn1.createChat("john@192.168.1.11");

org.jivesoftware.smack.packet.Message msg = chat1.createMessage();

msg.setSubject(“test subject”);

msg.setBody(“test body”);

org.jivesoftware.smackx.MessageEventManager.addNotificationsRequests(msg, true, true, true, true);

chat1.sendMessage(msg);

//org.jivesoftware.smack.Chat newChat = conn1.createChat("joe@192.168.1.11/MCenter");

//newChat.sendMessage(“test from Asterisk Client”);

}

catch(Exception e)

{

The username joe@192.168.1.11 is not in the correct format. You should just be using “joe” if that’'s the username and not a full XMPP address.

Regards,

Matt

Matt,

thanks so much.

John Haigh