Why check bridgepeer twice?
authorOlle Johansson <oej@edvina.net>
Wed, 30 Aug 2006 20:24:32 +0000 (20:24 +0000)
committerOlle Johansson <oej@edvina.net>
Wed, 30 Aug 2006 20:24:32 +0000 (20:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41457 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index ac8e7fa..948dc3b 100644 (file)
@@ -4926,8 +4926,6 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
                ast_set_write_format(p->owner, p->owner->writeformat);
        }
        
-       bridgepeer = ast_bridged_channel(p->owner);
-
        /* Turn on/off music on hold if we are holding/unholding */
        if ((bridgepeer = ast_bridged_channel(p->owner))) {
                if (sin.sin_addr.s_addr && !sendonly) {