PJSIP: Ensure test event has new state
authorKinsey Moore <kmoore@digium.com>
Mon, 7 Apr 2014 20:41:05 +0000 (20:41 +0000)
committerKinsey Moore <kmoore@digium.com>
Mon, 7 Apr 2014 20:41:05 +0000 (20:41 +0000)
commitfcb04d889a51122ded985c18c455851ba96e48a0
tree3e3f39333b24cbe3940b2a06d9127ff7f7c112f3
parentc0a812e1432aa0aeb5d913230df5ca3e1a09bdc1
PJSIP: Ensure test event has new state

The change that fixed the pubsub test event's use of a dangling pointer
also changed when it was processed relative to the pjsip subscription
state change processing. This change corrects the order of events while
holding a reference to the pointer that was previously dangling.
........

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

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