From 1a026a52d3e7c2914f8775c15245dbfbef5bdd40 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 18 Jun 2019 17:21:52 +0200 Subject: lib/mgcp: Add new port with support to handle multiple MGCP sockets * Some scenarios like MGW BSC-attached in SCCPlite require handling of 2 MGCP-over-UDP sockets in MGCP Emulation: 1 for regular libosmomgcp-client from osmo-bsc and another one from the forward socket from osmo-bsc (of MGCP-over-IPA messages communicated with MSC). * Old port is kept for backward compatibility with other tests and enabled by default. It's also interesting to keep it because it makes tests without special needs (2 sockets) to use the old port/API which produces simpler code to read and mantain. * Users of the new port have to enable multi_conn_mode parameter and expect to interact with port MGCP_CLIENT_MULTI instead of MGCP_CLIENT, which will offer messages containing information about the UDP connection being used by that message. Change-Id: Ic0ba8c5cde068c07671512a83095d83e28b86746 --- bsc/BSC_Tests.ttcn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bsc') diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn index 976bc461..4c86e51f 100644 --- a/bsc/BSC_Tests.ttcn +++ b/bsc/BSC_Tests.ttcn @@ -294,7 +294,8 @@ function f_init_mgcp(charstring id) runs on test_CT { callagent_ip := mp_bsc_ip, callagent_udp_port := -1, mgw_ip := mp_test_ip, - mgw_udp_port := 2427 + mgw_udp_port := 2427, + multi_conn_mode := false }; vc_MGCP := MGCP_Emulation_CT.create(id); -- cgit v1.2.3