Review Board 1.7.16

res_xmpp: Buddies are always auto-registered when processing the roster

Review Request #4496 - Created March 14, 2015 and submitted

Matt Jordan
From the issue:

In both xmpp_roster_hook and xmpp_client_create_buddy, it ignores the XMPP_AUTOREGISTER setting and sets "buddy->subscribe = 1" if there is no subscription.

This is a regression as it was already fixed in ASTERISK-14233. It is extremely inconvenient to have Asterisk send "Greetings! I am the Asterisk Open Source PBX and I want to subscribe to your presence" to everyone in your contact list.

I am sharing my own XMPP account with Asterisk (at a negative priority) and this needs to be a recognised use case where Asterisk should not do inappropriate things.

We are indeed ignoring the XMPP_AUTOREGISTER setting. This is due to not properly copying over the global settings to the client settings. Thanks to Simon Arlott for providing the patch for this.

Review request changed
Updated (March 25, 2015, 11:25 a.m.)
  • changed from pending to submitted
Committed in revision 433418 runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to