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

@@ -623,7 +623,11 @@ AST_TEST_DEFINE(sdp_to_topology)
goto end;
}
topology = ast_get_topology_from_sdp(sdp);
topology = ast_get_topology_from_sdp(sdp, 0);
if (!topology) {
res = AST_TEST_FAIL;
goto end;
}
if (ast_stream_topology_get_count(topology) != 3) {
ast_test_status_update(test, "Unexpected topology count '%d'. Expecting 2\n",