aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/msc/msc_mgcp.h
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-12-21 01:35:21 +0100
committergsmevent admin <admin@gsmevent.box>2018-12-24 15:45:50 +0100
commitc1c4a1320602ce121246e09a399122529c6d9ebc (patch)
treed4146fbbf91ea1279cb101fa282f4e429c125efa /include/osmocom/msc/msc_mgcp.h
parent7cd1b89fd3f26d19cfcc190806173bad0bd61981 (diff)
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
Diffstat (limited to 'include/osmocom/msc/msc_mgcp.h')
0 files changed, 0 insertions, 0 deletions