[Asterisk-code-review] SDP: Add t= line in sdp create from state() (asterisk[master])

Richard Mudgett asteriskteam at digium.com
Tue Jun 13 14:28:20 CDT 2017


Richard Mudgett has uploaded this change for review. ( https://gerrit.asterisk.org/5815


Change subject: SDP: Add t= line in sdp_create_from_state()
......................................................................

SDP: Add t= line in sdp_create_from_state()

Change-Id: I4060391328a893101ed87d0d9bacbbab4fd8b141
---
M main/sdp_state.c
1 file changed, 5 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/15/5815/1

diff --git a/main/sdp_state.c b/main/sdp_state.c
index 00f147f..a5f1167 100644
--- a/main/sdp_state.c
+++ b/main/sdp_state.c
@@ -1734,13 +1734,16 @@
 	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;
 	}

-- 
To view, visit https://gerrit.asterisk.org/5815
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4060391328a893101ed87d0d9bacbbab4fd8b141
Gerrit-Change-Number: 5815
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170613/a5575e8a/attachment.html>


More information about the asterisk-code-review mailing list