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

Matt Jordan (JIRA) noreply at issues.asterisk.org
Tue Sep 3 13:49:05 CDT 2013


Matt Jordan created ASTERISK-22448:
--------------------------------------

             Summary: [patch] jabber/xmpp MWI distributed pubsub issue where the mailbox and context get swapped at the remote end
                 Key: ASTERISK-22448
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22448
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Resources/res_jabber, Resources/res_xmpp
    Affects Versions: SVN, 12, 1.8.23.1, 11.5.1
         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: 9
NewMessages: 1
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