summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-23 17:07:00 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-23 17:07:00 +0100
commita0aa566ec46e98ae2b2fb35a28e252a02a6fb60d (patch)
treeddc0d21701998ec635b3e76dafcc4b5c911edeb9
parentdbe55c1eb5b160e18c82fba1769a079298397d12 (diff)
mncc: Remember the IMSI as well
-rw-r--r--src/call.h1
-rw-r--r--src/mncc.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/call.h b/src/call.h
index a7d3385..c1a8adc 100644
--- a/src/call.h
+++ b/src/call.h
@@ -56,6 +56,7 @@ struct mncc_call_leg {
uint32_t callref;
struct gsm_mncc_number called;
struct gsm_mncc_number calling;
+ char imsi[16];
struct mncc_connection *conn;
};
diff --git a/src/mncc.c b/src/mncc.c
index 686c2f0..4f31bcc 100644
--- a/src/mncc.c
+++ b/src/mncc.c
@@ -195,6 +195,7 @@ static void check_setup(struct mncc_connection *conn, char *buf, int rc)
leg->state = MNCC_CC_INITIAL;
memcpy(&leg->called, &data->called, sizeof(leg->called));
memcpy(&leg->calling, &data->calling, sizeof(leg->calling));
+ memcpy(&leg->imsi, data->imsi, sizeof(leg->imsi));
LOGP(DMNCC, LOGL_DEBUG,
"Created call(%u) with MNCC leg(%u) IMSI(%.16s)\n",