Merged revisions 328317 via svnmerge from
authorRichard Mudgett <rmudgett@digium.com>
Thu, 14 Jul 2011 23:34:43 +0000 (23:34 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 14 Jul 2011 23:34:43 +0000 (23:34 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.10

................
  r328317 | rmudgett | 2011-07-14 18:28:49 -0500 (Thu, 14 Jul 2011) | 13 lines

  Merged revisions 328302 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.8

  ........
    r328302 | rmudgett | 2011-07-14 18:12:06 -0500 (Thu, 14 Jul 2011) | 6 lines

    Missing SIP pvt and channel unlock in sip_set_rtp_peer().

    Regression introduced by -r326144.

    Add missing SIP pvt and channel unlock in sip_set_rtp_peer().
  ........
................

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

channels/chan_sip.c

index fec8436..a8d2479 100644 (file)
@@ -29075,7 +29075,9 @@ static int sip_set_rtp_peer(struct ast_channel *chan, struct ast_rtp_instance *i
        if ((instance || vinstance || tinstance) &&
                !ast_bridged_channel(chan) &&
                !sip_cfg.directrtpsetup) {
-                       return 0;
+               sip_pvt_unlock(p);
+               ast_channel_unlock(chan);
+               return 0;
        }
 
        if (p->alreadygone) {