mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-01 18:09:41 +00:00
SDP: Add t= line in sdp_create_from_state()
Change-Id: I4060391328a893101ed87d0d9bacbbab4fd8b141
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user