Fix a crash as a result of propagating MWI or device state over XMPP when the client...
authorJoshua Colp <jcolp@digium.com>
Tue, 17 Jul 2012 16:32:10 +0000 (16:32 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 17 Jul 2012 16:32:10 +0000 (16:32 +0000)
commit44345b097337614bbfa5a080f745a770b6e04581
treedd7b016062d6667df18ab3897fd0c85d1c03dd82
parent6027b26fa7de6a70a3f1335017d07a22f4069409
Fix a crash as a result of propagating MWI or device state over XMPP when the client is disconnected.

The MWI and device state propagation code wrongly assumes that an XMPP client connection will remain established at all times. This fix corrects that by making the lifetime of the subscription the same as the lifetime of the connection itself. As the connection is established and disconnected the subscription itself is created and destroyed.

(closes issue ASTERISK-18078)
Reported by: elguero

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370152 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/xmpp.h
res/res_xmpp.c