Issue #6657 - Ignore 183 Session Progress without SDP (imported from 1.2 rev 12458)
authorOlle Johansson <oej@edvina.net>
Wed, 8 Mar 2006 10:54:40 +0000 (10:54 +0000)
committerOlle Johansson <oej@edvina.net>
Wed, 8 Mar 2006 10:54:40 +0000 (10:54 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12459 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 57d7c7d..8a5d362 100644 (file)
@@ -9597,12 +9597,13 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru
                break;
        case 183:       /* Session progress */
                sip_cancel_destroy(p);
+               /* Ignore 183 Session progress without SDP */
                if (!strcasecmp(get_header(req, "Content-Type"), "application/sdp")) {
                        process_sdp(p, req);
-               }
-               if (!ignore && p->owner) {
-                       /* Queue a progress frame */
-                       ast_queue_control(p->owner, AST_CONTROL_PROGRESS);
+                       if (!ignore && p->owner) {
+                               /* Queue a progress frame */
+                               ast_queue_control(p->owner, AST_CONTROL_PROGRESS);
+                       }
                }
                break;
        case 200:       /* 200 OK on invite - someone's answering our call */