aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2015-09-12 20:20:44 -0400
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2015-09-12 20:36:00 -0400
commite98086dad536f6415da387db5de32b1c146be9f2 (patch)
tree78188662e8dea5ba733dac4f76e68d99c7e7da92
parentcdedf561ba3ff265c005e339aec76c9f41f2f2b7 (diff)
mncc: Log CC cause when sending a primitive to MNCC.
-rw-r--r--openbsc/src/libmsc/gsm_04_08.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/openbsc/src/libmsc/gsm_04_08.c b/openbsc/src/libmsc/gsm_04_08.c
index 435f0dc28..01f139152 100644
--- a/openbsc/src/libmsc/gsm_04_08.c
+++ b/openbsc/src/libmsc/gsm_04_08.c
@@ -1346,20 +1346,26 @@ static int mncc_recvmsg(struct gsm_network *net, struct gsm_trans *trans,
if (trans)
if (trans->conn && trans->conn->lchan)
DEBUGP(DCC, "(bts %d trx %d ts %d ti %x sub %s) "
- "Sending '%s' to MNCC.\n",
+ "Sending '%s' cause %s/%s to MNCC.\n",
trans->conn->lchan->ts->trx->bts->nr,
trans->conn->lchan->ts->trx->nr,
trans->conn->lchan->ts->nr, trans->transaction_id,
(trans->subscr)?(trans->subscr->extension):"-",
- get_mncc_name(msg_type));
+ get_mncc_name(msg_type),
+ (mncc_has_cause(mncc))?get_mncc_location(mncc->cause.location):"-",
+ (mncc_has_cause(mncc))?get_mncc_cause(mncc->cause.value):"-");
else
DEBUGP(DCC, "(bts - trx - ts - ti -- sub %s) "
- "Sending '%s' to MNCC.\n",
+ "Sending '%s' cause %s/%s to MNCC.\n",
(trans->subscr)?(trans->subscr->extension):"-",
- get_mncc_name(msg_type));
+ get_mncc_name(msg_type),
+ (mncc_has_cause(mncc))?get_mncc_location(mncc->cause.location):"-",
+ (mncc_has_cause(mncc))?get_mncc_cause(mncc->cause.value):"-");
else
DEBUGP(DCC, "(bts - trx - ts - ti -- sub -) "
- "Sending '%s' to MNCC.\n", get_mncc_name(msg_type));
+ "Sending '%s' cause %s/%s to MNCC.\n", get_mncc_name(msg_type),
+ (mncc_has_cause(mncc))?get_mncc_location(mncc->cause.location):"-",
+ (mncc_has_cause(mncc))?get_mncc_cause(mncc->cause.value):"-");
mncc->msg_type = msg_type;