osmo-msc/src/libmsc
Neels Hofmeyr 3350bf9f78 release RTP stream only for matching CC transaction
Do not break the currently ongoing call when rejecting a second incoming
caller.

There may be multiple (up to seven) simultaneous CC transactions, and there is
one mgcp_ctx for the currently active RTP stream.

Release the MGCP context only when the active CC transaction is releasing.
Before this patch, any CC transaction release would destroy the single MGCP
context, possibly breaking the currently ongoing call (another CC trans).

This also fixes a possible use-after-free if there were pending MGCP message
responses for the MGCP context; they are canceled properly for a released
transaction, but since one transaction would free the other transaction's MGCP
state, the clean up did not take place and possibly caused an mgcp client
response handling to access a freed mgcp_ctx.

Related: OS#3735
Change-Id: I1f8746e7babfcd3028a4d2c0ba260c608c686c76
2019-01-03 00:34:53 +00:00
..
Makefile.am libmsc/gsm_04_11.c: forward MO SMS messages over GSUP 2018-12-30 11:48:22 +01:00
a_iface.c cosmetic: drop unused variable 2018-12-17 17:36:25 +01:00
a_iface_bssap.c Revert "move ASS-COMPL MGCP handling out of a_iface_bssap.c" 2018-12-11 19:52:30 +01:00
a_reset.c combine several small .h in msc_common.h 2018-11-30 22:46:15 +01:00
ctrl_commands.c cosmetic: remove forgotten debug printf 2018-11-08 11:10:15 +01:00
db.c libmsc/db.c: cosmetic: mark missing breaks in switch as intended 2018-11-21 19:48:16 +07:00
gsm_04_08.c libmsc/gsm_04_11.c: forward MO SMS messages over GSUP 2018-12-30 11:48:22 +01:00
gsm_04_08_cc.c Remove redundancy in LAC processing 2018-12-19 11:48:33 +01:00
gsm_04_11.c libmsc/gsm_04_11.c: forward MO SMS messages over GSUP 2018-12-30 11:48:22 +01:00
gsm_04_11_gsup.c libmsc/gsm_04_11.c: forward MO SMS messages over GSUP 2018-12-30 11:48:22 +01:00
gsm_04_14.c rename gsm_subscriber_connection to ran_conn 2018-11-30 22:45:42 +01:00
gsm_04_80.c rename gsm_subscriber_connection to ran_conn 2018-11-30 22:45:42 +01:00
gsm_09_11.c Remove redundancy in LAC processing 2018-12-19 11:48:33 +01:00
gsm_subscriber.c Remove redundancy in LAC processing 2018-12-19 11:48:33 +01:00
iu_dummy.c cosmetic: drop some unused opaque struct defs 2018-11-30 22:46:15 +01:00
iucs.c combine several small .h in msc_common.h 2018-11-30 22:46:15 +01:00
iucs_ranap.c combine several small .h in msc_common.h 2018-11-30 22:46:15 +01:00
mncc.c Massive removal of unused code/structs/headers 2018-01-25 00:18:05 +01:00
mncc_builtin.c MNCC: use log wrapper for call processing 2018-12-23 09:51:53 +00:00
mncc_sock.c libmsc/mncc_sock.c: Add lchan_type_offset in queue_hello() 2018-08-10 14:31:30 +00:00
msc_ifaces.c rename gsm_subscriber_connection to ran_conn 2018-11-30 22:45:42 +01:00
msc_mgcp.c release RTP stream only for matching CC transaction 2019-01-03 00:34:53 +00:00
msc_vty.c libmsc/VTY: introduce kill-switch for routing SMS over GSUP 2018-12-30 11:48:22 +01:00
osmo_msc.c Revert "move ASS-COMPL MGCP handling out of a_iface_bssap.c" 2018-12-11 19:52:30 +01:00
ran_conn.c move ran_conn declarations to new ran_conn.h 2018-11-30 22:46:15 +01:00
rrlp.c move ran_conn declarations to new ran_conn.h 2018-11-30 22:46:15 +01:00
silent_call.c combine several small .h in msc_common.h 2018-11-30 22:46:15 +01:00
smpp_openbsc.c rename gsm_subscriber_connection to ran_conn 2018-11-30 22:45:42 +01:00
smpp_smsc.c smpp_smsc_conf: Fix heap-use-after-free 2018-04-17 16:10:35 +02:00
smpp_smsc.h rename gsm_subscriber_connection to ran_conn 2018-11-30 22:45:42 +01:00
smpp_utils.c dissolve libcommon: drop debug.c 2018-03-22 17:05:42 +01:00
smpp_vty.c vty: skip installing cmds now always installed by default 2017-11-01 00:51:21 +01:00
sms_queue.c GSM_EXTENSION_LENGTH -> VLR_MSISDN_LENGTH 2018-11-30 22:46:15 +01:00
transaction.c cosmetic: drop duplicated #include 2018-12-17 10:49:50 +01:00