Add pubsub unsubscription support so subscriptions do not linger for MWI and device...
authorJoshua Colp <jcolp@digium.com>
Tue, 17 Jul 2012 19:05:36 +0000 (19:05 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 17 Jul 2012 19:05:36 +0000 (19:05 +0000)
commitcd91570bc65f3fd182e3cca1ef6c01ee5756b94b
treefeb1cbf1d99fa4a5b3b67d5ba2b85fa8a1de1568
parent44345b097337614bbfa5a080f745a770b6e04581
Add pubsub unsubscription support so subscriptions do not linger for MWI and device state progatation.

The pubsub code did not attempt to remove subscriptions at all. This has now changed so that if a client is being disconnected it will unsubscribe. It will also unsubscribe at connection time so if it unexpectedly disconnected duplicate subscriptions will not occur.

(closes issue ASTERISK-19882)
Reported by: mattvryan

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