[asterisk-bugs] [JIRA] (ASTERISK-22435) jabber/xmpp MWI distributed pubsub issue where the mailbox and context get swapped at the remote end

abelbeck (JIRA) noreply at issues.asterisk.org
Sat Aug 31 13:11:03 CDT 2013


abelbeck created ASTERISK-22435:
-----------------------------------

             Summary: jabber/xmpp MWI distributed pubsub issue where the mailbox and context get swapped at the remote end
                 Key: ASTERISK-22435
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22435
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Resources/res_jabber, Resources/res_xmpp
    Affects Versions: 11.5.1, 1.8.23.1, SVN, 12
         Environment: AstLinux 1.1.x
            Reporter: abelbeck


While testing Distributed Asterisk Events using XMPP PubSub, MWI did not seem to work as expected.

Snippet from "event dump cache MWI" at remote end...
--
Event: MWI
Mailbox: default
Context: 21
OldMessages: 10
NewMessages: 0
EntityID: 00:00:24:xx:xx:xx
--

Snippet from "xmpp set debug on" at remote end...
--
<items node='message_waiting'>
<item id='21 at default'><mailbox eid='00:00:24:xx:xx:xx' xmlns='http://asterisk.org'>
<NEWMSGS>1</NEWMSGS>
<OLDMSGS>9</OLDMSGS>
</mailbox>
--

Notice the MWI cache has the Mailbox and Context reversed.

This issue seems to effect all Asterisk versions supporting Distributed Asterisk Events using XMPP PubSub.

Attached are patches for Asterisk 1.8 and 11.  12 and SVN res_xmpp.c is slightly different, but easily extrapolated.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list