diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-04-23 20:25:17 -0400 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-04-23 20:27:30 -0400 |
commit | 7f100c9712de5c684462e809bf31a58c0c326337 (patch) | |
tree | a0679413f21ddea3c2656f0463595056f4769989 /openbsc/tests/bsc-nat/bsc_nat_test.c | |
parent | d4b03187c68c6136192f7a41335982b5ceeeb036 (diff) |
nat: Make mode-set patching optional
Diffstat (limited to 'openbsc/tests/bsc-nat/bsc_nat_test.c')
-rw-r--r-- | openbsc/tests/bsc-nat/bsc_nat_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/tests/bsc-nat/bsc_nat_test.c b/openbsc/tests/bsc-nat/bsc_nat_test.c index 245b081e1..5b01cc3cd 100644 --- a/openbsc/tests/bsc-nat/bsc_nat_test.c +++ b/openbsc/tests/bsc-nat/bsc_nat_test.c @@ -625,12 +625,13 @@ static void test_mgcp_rewrite(void) const char *ip = mgcp_messages[i].ip; const int port = mgcp_messages[i].port; const int expected_payload_type = mgcp_messages[i].payload_type; + const int ensure_mode_set = mgcp_messages[i].ensure_mode_set; int payload_type = -1; char *input = strdup(orig); output = bsc_mgcp_rewrite(input, strlen(input), 0x1e, - ip, port, -1, &payload_type); + ip, port, -1, &payload_type, ensure_mode_set); if (payload_type != -1) { fprintf(stderr, "Found media payload type %d in SDP data\n", |