SDP: Update ast_get_topology_from_sdp() to keep RTP map.

* Add failure exits to ast_get_topology_from_sdp().

Change-Id: I4cc85c1ede8d712766ed20f544dbcef04c8c1049
This commit is contained in:
Richard Mudgett
2017-04-28 12:30:34 -05:00
parent c2906dfa05
commit ae7689f093
5 changed files with 93 additions and 53 deletions

View File

@@ -1007,7 +1007,8 @@ static int merge_sdps(struct ast_sdp_state *sdp_state, const struct ast_sdp *rem
struct ast_stream_topology *remote_capabilities;
int i;
remote_capabilities = ast_get_topology_from_sdp(remote_sdp);
remote_capabilities = ast_get_topology_from_sdp(remote_sdp,
sdp_state->options->g726_non_standard);
if (!remote_capabilities) {
return -1;
}