[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:17:02 CDT 2013


     [ https://issues.asterisk.org/jira/browse/ASTERISK-22435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

abelbeck updated ASTERISK-22435:
--------------------------------

    Description: 
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.

  was:
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.

    
> 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: SVN, 12, 1.8.23.1, 11.5.1
>         Environment: AstLinux 1.1.x
>            Reporter: abelbeck
>         Attachments: asterisk-11-res_xmpp-xmpp_pubsub_handle_event.patch, asterisk-1.8-res_jabber-aji_handle_pubsub_event.patch
>
>
> 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