aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--channels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 3999abba0..156f3e787 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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)