SDP: Add t= line in sdp_create_from_state()
authorRichard Mudgett <rmudgett@digium.com>
Thu, 11 May 2017 19:09:06 +0000 (14:09 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 15 Jun 2017 14:42:15 +0000 (09:42 -0500)
Change-Id: I4060391328a893101ed87d0d9bacbbab4fd8b141

main/sdp_state.c

index 00f147f..a5f1167 100644 (file)
@@ -1734,13 +1734,16 @@ static struct ast_sdp *sdp_create_from_state(const struct ast_sdp_state *sdp_sta
        if (!c_line) {
                goto error;
        }
-
        s_line = ast_sdp_s_alloc(options->sdpsession);
        if (!s_line) {
                goto error;
        }
+       t_line = ast_sdp_t_alloc(0, 0);
+       if (!t_line) {
+               goto error;
+       }
 
-       sdp = ast_sdp_alloc(o_line, c_line, s_line, NULL);
+       sdp = ast_sdp_alloc(o_line, c_line, s_line, t_line);
        if (!sdp) {
                goto error;
        }