Don't double ack subscribes
authorMark Spencer <markster@digium.com>
Fri, 11 Apr 2003 04:49:00 +0000 (04:49 +0000)
committerMark Spencer <markster@digium.com>
Fri, 11 Apr 2003 04:49:00 +0000 (04:49 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@825 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 1edabbe..d8f4861 100755 (executable)
@@ -3954,18 +3954,13 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
                                ast_log(LOG_NOTICE, "Dunno anything about a %d %s response from %s\n", resp, rest, p->owner ? p->owner->name : inet_ntoa(p->sa.sin_addr));
                }
        } else {
-               if (p->subscribed) {
-                   /* Acknowledge sequence number */
-                   __sip_ack(p, seqno, 0);
-               } else {
-                       if (sipdebug)
-                               ast_verbose("Message is %s\n", msg);
-                       switch(resp) {
-                       case 200:
-                               if (!strcasecmp(msg, "INVITE") || !strcasecmp(msg, "REGISTER") )
-                                       transmit_request(p, "ACK", seqno, 0);
-                               break;
-                       }
+               if (sipdebug)
+                       ast_verbose("Message is %s\n", msg);
+               switch(resp) {
+               case 200:
+                       if (!strcasecmp(msg, "INVITE") || !strcasecmp(msg, "REGISTER") )
+                               transmit_request(p, "ACK", seqno, 0);
+                       break;
                }
        }
        if (owner)