diff options
author | Harald Welte <laforge@gnumonks.org> | 2015-12-03 14:59:04 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2015-12-12 21:43:16 +0100 |
commit | 53d51f501ca2ee138556258b0b5c72041c2ac95a (patch) | |
tree | 5d64644b3c686e51c2ef8a86f1e4ce5dc2c4d029 /openbsc/src/libmsc/gsm_04_08.c | |
parent | da8a19fec0ae16f110869508dd20f9ebab1520e5 (diff) |
mncc: introduce 'struct gsm_mncc_bridge' for MNCC_BRIDGE
When a MNCC handler wants to issue the MNCC_BRIDGE primitive
overt the MNCC interface, this was not possible so far via the
MNCC socket. This primitive was so far only available from the
internal MNCC handler, more or less by accident I suppose. The reason
for this is in the way the array of two call references had been passed
into mncc_tx_to_cc().
Diffstat (limited to 'openbsc/src/libmsc/gsm_04_08.c')
-rw-r--r-- | openbsc/src/libmsc/gsm_04_08.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsc/src/libmsc/gsm_04_08.c b/openbsc/src/libmsc/gsm_04_08.c index 7db758666..9d7e2aaad 100644 --- a/openbsc/src/libmsc/gsm_04_08.c +++ b/openbsc/src/libmsc/gsm_04_08.c @@ -1662,10 +1662,10 @@ static int tch_map(struct gsm_lchan *lchan, struct gsm_lchan *remote_lchan) } /* bridge channels of two transactions */ -static int tch_bridge(struct gsm_network *net, uint32_t *refs) +static int tch_bridge(struct gsm_network *net, struct gsm_mncc_bridge *bridge) { - struct gsm_trans *trans1 = trans_find_by_callref(net, refs[0]); - struct gsm_trans *trans2 = trans_find_by_callref(net, refs[1]); + struct gsm_trans *trans1 = trans_find_by_callref(net, bridge->callref[0]); + struct gsm_trans *trans2 = trans_find_by_callref(net, bridge->callref[1]); if (!trans1 || !trans2) return -EIO; |