From aadccc10b84dd1d391495085210b817f7058f2fd Mon Sep 17 00:00:00 2001
From: Olle Johansson <oej@edvina.net>
Date: Mon, 30 Oct 2006 18:02:37 +0000
Subject: [PATCH] Small conversion to ast_channel_unlock

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46461 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 channels/chan_sip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 881e707a67..60415a5ade 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -13343,7 +13343,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
 				if (res) {
 
 					/* Unlock locks so ast_hangup can do its magic */
-					ast_mutex_unlock(&c->lock);
+					ast_channel_unlock(c);
 					sip_pvt_unlock(p);
 					ast_hangup(c);
 					sip_pvt_lock(p);
-- 
GitLab