Set call as outgoing *after* sending reinvite
authorMark Spencer <markster@digium.com>
Thu, 3 Apr 2003 08:00:57 +0000 (08:00 +0000)
committerMark Spencer <markster@digium.com>
Thu, 3 Apr 2003 08:00:57 +0000 (08:00 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@742 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index c48a281..f846edc 100755 (executable)
@@ -4520,8 +4520,8 @@ static int sip_set_rtp_peer(struct ast_channel *chan, struct ast_rtp *rtp)
        struct sip_pvt *p;
        p = chan->pvt->pvt;
        if (p) {
-               p->outgoing = 1;
                transmit_reinvite_with_sdp(p, rtp);
+               p->outgoing = 1;
                return 0;
        }
        return -1;