diff options
author | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-20 17:51:41 +0000 |
---|---|---|
committer | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-06-20 17:51:41 +0000 |
commit | 0bf17f5eb4bf3eedee55ad3b28324574ecdfd99d (patch) | |
tree | a43df6b5d9f1a7d3bc12edf964730a825f99c066 /channels | |
parent | 8b04fc3fdaeacfee5d91351d697b39f695d3af78 (diff) |
Since we don't have sip_pvt_lock() in 1.4, we need to use ast_mutex_* directly.
(closes issue #15366)
Reported by: loloski
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@202153 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 4 |
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) |