diff options
author | Ivan Kluchnikov <kluchnikovi@gmail.com> | 2017-07-19 17:38:41 +0300 |
---|---|---|
committer | Ivan Kluchnikov <kluchnikovi@gmail.com> | 2017-07-19 17:38:41 +0300 |
commit | 9630a78755fd066b296dce451a0fa39912f4bf05 (patch) | |
tree | c00686558394fc19c05c431b39362044952c1026 /openbsc/src | |
parent | 203a4a12608459f1dcccf550659cabded1051846 (diff) |
gsm_04_08: Add handling of rtp bridge mode in tch_recv_mncc function to avoid executing code which is used for rtp proxy mode
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/libmsc/gsm_04_08.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/libmsc/gsm_04_08.c b/openbsc/src/libmsc/gsm_04_08.c index 4a0e394a8..62a86e7ca 100644 --- a/openbsc/src/libmsc/gsm_04_08.c +++ b/openbsc/src/libmsc/gsm_04_08.c @@ -2049,6 +2049,10 @@ static int tch_recv_mncc(struct gsm_network *net, uint32_t callref, int enable) LOGP(DCC, LOGL_ERROR, "Error: RTP proxy is disabled\n"); return -EINVAL; } + /* RTP bridge handling */ + if (lchan->conn && lchan->conn->mncc_rtp_bridge) { + return 0; + } /* In case, we don't have a RTP socket to the BTS yet, the BTS * will not be connected to our RTP proxy and the socket will * not be assigned to the application interface. This method |