]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_mwi: use an ao2_global object for mwi containers
authorKevin Harwell <kharwell@digium.com>
Wed, 2 Oct 2019 16:37:08 +0000 (11:37 -0500)
committerKevin Harwell <kharwell@digium.com>
Mon, 7 Oct 2019 21:49:39 +0000 (16:49 -0500)
commit3f12cd77113b04799e9a036edddbfb8a420e3052
tree86fc9dd828d648036a68ac314cc4d706fe7ac3cb
parent931ef77e2102955453297b310157e8f9b02955d6
res_pjsip_mwi: use an ao2_global object for mwi containers

On shutdown it's possible for the unsolicited mwi container to be freed before
other dependent threads are done using it. This patch ensures this can no
longer happen by wrapping the container in an ao2_global object. The solicited
container was also changed too.

ASTERISK-28552

Change-Id: I8f812286dc19a34916acacd71ce2ec26e1042047
res/res_pjsip_mwi.c