diff options
author | Richard Mudgett <rmudgett@digium.com> | 2017-05-11 14:09:06 -0500 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2017-06-15 09:42:15 -0500 |
commit | 0fdb99c268d13e51bc271fe24c691f61f03b9578 (patch) | |
tree | a83e124e1cf9c6a6068ed244cd46a6a44765ebc1 /main/sdp_state.c | |
parent | 4797a8bb810c7b7c5445f49f367e3f054797fd7c (diff) |
SDP: Add t= line in sdp_create_from_state()
Change-Id: I4060391328a893101ed87d0d9bacbbab4fd8b141
Diffstat (limited to 'main/sdp_state.c')
-rw-r--r-- | main/sdp_state.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/main/sdp_state.c b/main/sdp_state.c index 00f147f47..a5f116706 100644 --- a/main/sdp_state.c +++ b/main/sdp_state.c @@ -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; } |