Don't count as outgoing until we actually send the new INVITE
authorMark Spencer <markster@digium.com>
Thu, 27 May 2004 16:14:46 +0000 (16:14 +0000)
committerMark Spencer <markster@digium.com>
Thu, 27 May 2004 16:14:46 +0000 (16:14 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3092 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c
channels/chan_sip.c

index 6411de4..dd11efb 100755 (executable)
@@ -24,6 +24,7 @@
 #include <asterisk/options.h>
 #include <asterisk/cli.h>
 #include <asterisk/say.h>
 #include <asterisk/options.h>
 #include <asterisk/cli.h>
 #include <asterisk/say.h>
+#include <asterisk/utils.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
index 15c3f81..8968ea8 100755 (executable)
@@ -7765,7 +7765,6 @@ static int sip_set_rtp_peer(struct ast_channel *chan, struct ast_rtp *rtp, struc
                                ast_log(LOG_DEBUG, "Deferring reinvite on '%s'\n", p->callid);
                                p->needreinvite = 1;
                        }
                                ast_log(LOG_DEBUG, "Deferring reinvite on '%s'\n", p->callid);
                                p->needreinvite = 1;
                        }
-                       p->outgoing = 1;
                }
                return 0;
        }
                }
                return 0;
        }