]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Call correct lock function as transferer is a sip_pvt not a channel
authorTerry Wilson <twilson@digium.com>
Fri, 3 Sep 2010 23:19:54 +0000 (23:19 +0000)
committerTerry Wilson <twilson@digium.com>
Fri, 3 Sep 2010 23:19:54 +0000 (23:19 +0000)
Both functions are #defined to ao2_lock, but still...

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@285017 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index c2e6d2b00fc02157278d382bef543d23bc75b3a8..b0a6e12e5bbae6c9256aa85d8a1d949eeb6746f1 100644 (file)
@@ -21733,7 +21733,7 @@ static int local_attended_transfer(struct sip_pvt *transferer, struct sip_dual *
 
                ast_do_masquerade(target.chan1);
 
-               ast_channel_lock(transferer); /* the transferer pvt is expected to remain locked on return */
+               sip_pvt_lock(transferer); /* the transferer pvt is expected to remain locked on return */
 
                ast_indicate(target.chan1, AST_CONTROL_UNHOLD);