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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 16 11:51:41 CDT 2017


Jenkins2 has submitted this change and it was merged. ( 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(-)

Approvals:
  Joshua Colp: Looks good to me, but someone else must approve
  Kevin Harwell: Looks good to me, approved
  Jenkins2: Approved for Submit



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: merged
Gerrit-Change-Id: I4060391328a893101ed87d0d9bacbbab4fd8b141
Gerrit-Change-Number: 5815
Gerrit-PatchSet: 2
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-commits/attachments/20170616/eebe42ba/attachment-0001.html>


More information about the asterisk-commits mailing list