]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_xmpp: Does not connect in component mode 42/2142/2
authorKarsten Wemheuer <kwe-digium@iptam.com>
Tue, 2 Feb 2016 10:05:15 +0000 (11:05 +0100)
committerJoshua Colp <jcolp@digium.com>
Tue, 2 Feb 2016 12:48:01 +0000 (06:48 -0600)
commit0405c31756e45047cec20caccf228e5862550f9c
tree92ca2051e17785566583080eb701af53ce7de448
parent8804d0973c9144da4b3af863a24a8dfaac22c04e
res_xmpp: Does not connect in component mode

The module res_xmpp does not accept usernames in the form used in component
mode (XEP-0114). In component mode there is no @something in the name.
In component mode the connection is now not dropped anymore.

If the xmpp server sends out a "stream" tag before handshake is finished,
the connection gets dropped in res_xmpp. Now this tag will be ignored and
the connection will be established.

After connecting there will be an exchange of presence states. This does
not work as expected in component mode. The responsible function
"xmpp_pak_presence" is left before the states get sent out. Sending
presence states in component mode is now moved to the top of the function.

ASTERISK-25735 #close

Change-Id: I70e036f931c3124ebb2ad1e56f93ed35cfdd9d5c
res/res_xmpp.c