diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2018-02-08 14:15:59 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-03-14 21:08:30 +0000 |
commit | a2353c69cc3d2ccc7caee4571b3b8d2a98961150 (patch) | |
tree | 3edb03468ae1d89f546951d097f703eb1a626b51 /include/osmocom/msc/msc_mgcp.h | |
parent | 3a77652cd7cf30e03de979d55986632189a9c18f (diff) |
mcgp: let the MGW allocate the MGCP endpoint
osmo-msc still uses endpoints that are allocated locally by the
MGCP-Client. Since osmo-mgw now supports the more comfortable,
dynamic variant we should make use of it.
- Replace the endpoint numer allocation by the client with a
wildcarded CRCX. Use the endpoint that is assigned by the
MGW.
Related: OS#2710
Change-Id: Iee3e446b6689626516f01c521abe3d4603cd3e13
Diffstat (limited to 'include/osmocom/msc/msc_mgcp.h')
-rw-r--r-- | include/osmocom/msc/msc_mgcp.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/osmocom/msc/msc_mgcp.h b/include/osmocom/msc/msc_mgcp.h index ac3283c75..3c4bc6273 100644 --- a/include/osmocom/msc/msc_mgcp.h +++ b/include/osmocom/msc/msc_mgcp.h @@ -31,10 +31,15 @@ struct mgcp_ctx { /* FSM instance, which handles the connection switching procedure */ struct osmo_fsm_inst *fsm; - /* RTP endpoint number. This number identifies the endpoint + /* RTP endpoint string. This string identifies the endpoint * on the MGW on which the RAN and CN connection is created. This - * endpoint number is assigned and released automatically. */ - uint16_t rtp_endpoint; + * endpoint number is assigned by the MGW. */ + char rtp_endpoint[MGCP_ENDPOINT_MAXLEN]; + + /* Call id of the current call. Will be derived from the callref + * of the transaction that is valid during the first CRCX. (The + * callref may change throughout the call) */ + unsigned int call_id; /* Set to true, when the context information is no longer needed */ bool free_ctx; |