]> 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:56:44 +0000 (12:56 -0500)
committerKevin Harwell <kharwell@digium.com>
Mon, 7 Oct 2019 21:54:16 +0000 (16:54 -0500)
commit12dbeb69b093d9eab22848e5b8122b49d20c6f17
tree52eef2dec93d71e59f87041fc4000593cbc40ae0
parent2970a13fb8f03352af4045074a20b99e8322b9e7
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