From 7a2e489631b950828837ff79e7646fdefd05e703 Mon Sep 17 00:00:00 2001 From: Olle Johansson Date: Mon, 19 Sep 2011 09:40:44 +0000 Subject: [PATCH] Add missing unlock at MWI message sending time (closes issue ASTERISK-18573) Patches: sip_mwi_lock.patch (license #5041) by Gregory Hinton Nietsky Thanks to irrot for the reminder, to Gregory for the patch! git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@336378 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- Makefile | 2 +- channels/chan_sip.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 228d6027bc..48131a1eff 100644 --- a/Makefile +++ b/Makefile @@ -278,7 +278,7 @@ MOD_SUBDIRS_MENUSELECT_TREE:=$(MOD_SUBDIRS:%=%-menuselect-tree) ifneq ($(findstring darwin,$(OSARCH)),) _ASTCFLAGS+=-D__Darwin__ SOLINK=-bundle -Xlinker -macosx_version_min -Xlinker 10.4 -Xlinker -undefined -Xlinker dynamic_lookup -force_flat_namespace - ifeq ($(shell /usr/bin/sw_vers -productVersion | cut -c1-4),10.6) + ifeq ($(shell /usr/bin/sw_vers -productVersion | cut -c1-4),10.7) SOLINK+=/usr/lib/bundle1.o endif _ASTLDFLAGS+=-L/usr/local/lib diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 676c12494c..0c110fbbf0 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -25030,6 +25030,7 @@ static int sip_send_mwi_to_peer(struct sip_peer *peer, int cache_only) dialog_unlink_all(p, TRUE, TRUE); dialog_unref(p, "unref dialog p just created via sip_alloc"); /* sip_destroy(p); */ + ao2_unlock(peer); return 0; } /* Recalculate our side, and recalculate Call ID */