[ 
https://issues.apache.org/activemq/browse/CAMEL-712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hadrian Zbarcea resolved CAMEL-712.
-----------------------------------

    Fix Version/s: 1.5.0
       Resolution: Fixed

Vadim you're keeping us busy :).  Patch applied with thanks!

> Xmpp private chat does not work
> -------------------------------
>
>                 Key: CAMEL-712
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-712
>             Project: Apache Camel
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>         Environment: xmpp sender: xmpp camel component; account @gmail.com
> xmpp receiver: Psi version 0.11; account @jabber.org
>            Reporter: Vadim Chekan
>            Priority: Critical
>             Fix For: 1.5.0
>
>         Attachments: patch.txt
>
>
> This configuration logs in, presence works, but message is not received by 
> the participant.
> {code}
>               from("timer://kickoff?period=10000&delay=1").
>               setBody(constant("xmpp message")).
>               to("xmpp://[EMAIL 
> PROTECTED]/?resource=camel-user&password=xxxxxx&[EMAIL PROTECTED]");
> {code}
> It is cause by the code 
> {code}message.setFrom(endpoint.getUser());{code}
> 1. There is no need to set "from" field: smack will fetch this info from the 
> connection info and will set it up properly.
> 2. I can't find the link, but according to common sence and examples in 
> [Instant Messaging and Presence|http://www.ietf.org/rfc/rfc3921.txt]  "from" 
> should be JID (Jabber ID) and not just user name!
> {quote}
>    <message
>        to='[EMAIL PROTECTED]'
>        from='[EMAIL PROTECTED]/balcony'
>        type='chat'
>        xml:lang='en'>
>      <body>Wherefore art thou, Romeo?</body>
>    </message>
> {quote}
> 3. "Normal" message is just a hint to UI that the message is not part of 
> conversation but a standalone message. It does not matter practically but 
> ideologically  xmpp component will send messages as they flow and I'd say it 
> is a conversation (or monologue to be precise). So no need to set "Normal" 
> flag either. Smack will set it to the default "chat" type.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to