Process SDP on 183 session progress (bug #930)
authorMark Spencer <markster@digium.com>
Tue, 2 Mar 2004 23:29:00 +0000 (23:29 +0000)
committerMark Spencer <markster@digium.com>
Tue, 2 Mar 2004 23:29:00 +0000 (23:29 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2301 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 3a0b3d8..275caa7 100755 (executable)
@@ -4922,9 +4922,13 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
                case 100:
                        break;
                case 183:       
-                       if (p->owner) {
-                               /* Queue a progress frame */
-                               ast_queue_control(p->owner, AST_CONTROL_PROGRESS, 0);
+                       if (!strcasecmp(msg, "INVITE")) {
+                               if (strlen(get_header(req, "Content-Type")))
+                                       process_sdp(p, req);
+                               if (p->owner) {
+                                       /* Queue a progress frame */
+                                       ast_queue_control(p->owner, AST_CONTROL_PROGRESS, 0);
+                               }
                        }
                        break;
                case 180: