]> 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 17:18:50 +0000 (12:18 -0500)
committerKevin Harwell <kharwell@digium.com>
Mon, 7 Oct 2019 21:53:17 +0000 (16:53 -0500)
commit996fc40e2b489c7df13567d2255d8238c0cad1bd
treedee4f44f041edfeae2d857674cc397501f59ff37
parent299ba78b0955f17bfac5703b891d0d19466f99c1
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