Small conversion to ast_channel_unlock
authorOlle Johansson <oej@edvina.net>
Mon, 30 Oct 2006 18:02:37 +0000 (18:02 +0000)
committerOlle Johansson <oej@edvina.net>
Mon, 30 Oct 2006 18:02:37 +0000 (18:02 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46461 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 881e707..60415a5 100644 (file)
@@ -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);