Don't ACK on anything but INVITE
authorMark Spencer <markster@digium.com>
Wed, 9 Apr 2003 21:46:58 +0000 (21:46 +0000)
committerMark Spencer <markster@digium.com>
Wed, 9 Apr 2003 21:46:58 +0000 (21:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@804 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 6bd89f5..c3379ab 100755 (executable)
@@ -3937,7 +3937,9 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
                                                ast_queue_hangup(p->owner, 0);
                                        break;
                                }
-                               transmit_request(p, "ACK", seqno, 0);
+                               /* ACK on invite */
+                               if (!strcasecmp(msg, "INVITE"))
+                                       transmit_request(p, "ACK", seqno, 0);
                                p->alreadygone = 1;
                                if (!p->owner)
                                        p->needdestroy = 1;