res_pjsip_pubsub: Ensure dialog manipulation happens on proper thread.
authorJoshua Colp <jcolp@digium.com>
Tue, 24 Dec 2013 02:20:18 +0000 (02:20 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 24 Dec 2013 02:20:18 +0000 (02:20 +0000)
commitc3d5c41dae0b192a4967bc3b462de6c2bede8766
tree4d4f1815cafef35bce141c620b62211a8eb551e5
parent82eb03b915ccfc26ae453695f3de1296de7c7390
res_pjsip_pubsub: Ensure dialog manipulation happens on proper thread.

When destroying a subscription we remove the serializer from its dialog
and decrease its reference count. Depending on which thread dropped the
subscription reference count to 0 it was possible for this to occur in
a thread where it is not possible.

(closes issue ASTERISK-22952)
Reported by: Matt Jordan
........

Merged revisions 404553 from http://svn.asterisk.org/svn/asterisk/branches/12

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