aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmsc/osmo_msc.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-12-19 17:05:13 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-12-21 02:00:45 +0100
commiteff2293a5637799cab19384a35fd530febb3b4ab (patch)
treeb3f2e3ffd26e8bc56ccb95f71d909608177a3442 /src/libmsc/osmo_msc.c
parenta8a0059c4fc9d881e8fff5262a92a5e407c98be0 (diff)
abort assignment on Assignment Failureneels/call_during_call
If Assignment fails in the BSC, trigger an EV_TEARDOWN_ERROR in the mgcp_ctx FSM instance, so that the call gets torn down immediately. Before this, the non-call would idle around without anything happening. Related: OS#3236 Depends: I11b182a03f5ecb6df7cd8f260757d3626c8e945d (libosmocore) Change-Id: I358cfbaf0f44f25148e8b9bafcb9257b1952b35a
Diffstat (limited to 'src/libmsc/osmo_msc.c')
-rw-r--r--src/libmsc/osmo_msc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libmsc/osmo_msc.c b/src/libmsc/osmo_msc.c
index 37c1d15a4..1a1ba3ce4 100644
--- a/src/libmsc/osmo_msc.c
+++ b/src/libmsc/osmo_msc.c
@@ -28,6 +28,7 @@
#include <osmocom/msc/a_iface.h>
#include <osmocom/msc/gsm_04_08.h>
#include <osmocom/msc/gsm_04_11.h>
+#include <osmocom/msc/msc_mgcp.h>
#include "../../bscconfig.h"
#ifdef BUILD_IU
@@ -123,7 +124,9 @@ void msc_assign_compl(struct ran_conn *conn,
/* Receive an ASSIGNMENT FAILURE from BSC */
void ran_conn_assign_fail(struct ran_conn *conn, uint8_t cause, uint8_t *rr_cause)
{
- LOGP(DRR, LOGL_DEBUG, "MSC assign failure (do nothing).\n");
+ LOGPFSMSL(conn->fi, DRR, LOGL_ERROR, "Assignment Failure: cause=%u rr_cause=%u.\n",
+ cause, rr_cause ? *rr_cause : 0);
+ msc_mgcp_ass_fail(conn);
}
/* Receive a CLASSMARK CHANGE from BSC */