mgcp: use mgw assigned connection identifiers

osmo-mgw assigns connection identifiers which are returned with
the response to the CRCX.

store the assigned connection identifiers and use them to identify
the connections.

Depends: osmo-mgw Iab6a6038e7610c62f34e642cd49c93d11151252c

Closes: OS#2648
Change-Id: Ib379a6f40875bb8f2cf29038a5b5b7a40a21adab
diff --git a/include/osmocom/bsc/osmo_bsc_mgcp.h b/include/osmocom/bsc/osmo_bsc_mgcp.h
index dd26d40..df18524 100644
--- a/include/osmocom/bsc/osmo_bsc_mgcp.h
+++ b/include/osmocom/bsc/osmo_bsc_mgcp.h
@@ -20,6 +20,8 @@
 
 #pragma once
 
+#include <osmocom/mgcp_client/mgcp_common.h>
+
 /* MGCP state handler context (fsm etc..) */
 struct mgcp_ctx {
 	/* FSM instance, which handles the connection switching procedure */
@@ -28,6 +30,10 @@
 	/* RTP endpoint number */
 	uint16_t rtp_endpoint;
 
+	/* RTP connection identifiers */
+	char conn_id_bts[MGCP_CONN_ID_LENGTH];
+	char conn_id_net[MGCP_CONN_ID_LENGTH];
+
 	/* Copy of the pointer and the data with context information
 	 * needed to process the AoIP and MGCP requests (system data) */
 	struct mgcp_client *mgcp;