Fix when the subscription_terminated callback is called for subscription handlers.
authorMark Michelson <mmichelson@digium.com>
Thu, 29 Aug 2013 22:26:03 +0000 (22:26 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 29 Aug 2013 22:26:03 +0000 (22:26 +0000)
commit8990924953be29d679de2b373e47d680e04ba85b
treea3245ce3ed3dfc0e82958f749d0f0cabddcae805
parentde7ce39187f4cc22ded82a7b10cad1aa7654dfb0
Fix when the subscription_terminated callback is called for subscription handlers.

The previous placement would result in the resubscribe() callback called instead of
the subscription_terminated() callback being called when a subscription was ended
via a SUBSCRIBE request. This would result in confusing PJSIP and having it throw
an assertion.
........

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

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