]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Since we don't have sip_pvt_lock() in 1.4, we need to use ast_mutex_* directly.
authorSean Bright <sean@malleable.com>
Sat, 20 Jun 2009 17:51:41 +0000 (17:51 +0000)
committerSean Bright <sean@malleable.com>
Sat, 20 Jun 2009 17:51:41 +0000 (17:51 +0000)
(closes issue #15366)
Reported by: loloski

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

channels/chan_sip.c

index 3999abba0d93932e82609aac873937a99fd98257..156f3e7873a05d267d9de21e0d8bd25b3bf3c850 100644 (file)
@@ -3730,9 +3730,9 @@ static void try_suggested_sip_codec(struct sip_pvt *p)
        const char *codec;
 
        while (p->owner && ast_channel_trylock(p->owner)) {
-               sip_pvt_unlock(p);
+               ast_mutex_unlock(&p->lock);
                sched_yield();
-               sip_pvt_lock(p);
+               ast_mutex_lock(&p->lock);
        }
 
        if (!p->owner)