]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_pubsub: Move where the subscription is stored to after initialized. 95/2295/1
authorJoshua Colp <jcolp@digium.com>
Mon, 15 Feb 2016 18:52:22 +0000 (14:52 -0400)
committerJoshua Colp <jcolp@digium.com>
Thu, 25 Feb 2016 16:04:40 +0000 (10:04 -0600)
commitb7b193a430b7cb963d5f9fa96534f1af086ca081
tree292b7cbc67e9b4c179778c5382e137d9ef3dde47
parentd50b5d4f4c312db9258fd5c76ab21591690e2c2e
res_pjsip_pubsub: Move where the subscription is stored to after initialized.

A problem arose when testing the AMI subscription listing actions where it
was possible for a subscription that had not been fully initialized to be
listed. This was problematic as the underlying listing code would crash.

This change makes it so the subscription tree is fully set up before it is
added to the list of subscriptions. This ensures that when the listing actions
get the subscription it is valid.

ASTERISK-25738 #close

Change-Id: Iace2b13641c31bbcc0d43a39f99aba1f340c0f48
(cherry picked from commit 1c4f2a920db173412b38aab785ba22c2cc489f89)
res/res_pjsip_pubsub.c