From 73a15c630043221aa7753e000f02bdaa48b4debc Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Mon, 14 Jan 2013 11:13:18 +0100 Subject: mobile: addition to 47f05aefdf4eac7332aa4aa32238225e1c98aedb Fix for user-user message during call. If not delivered, the network sends a status message with cause 43. This is now indicated to sending user. --- src/host/layer23/src/mobile/mnccms.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/host/layer23/src/mobile/mnccms.c') diff --git a/src/host/layer23/src/mobile/mnccms.c b/src/host/layer23/src/mobile/mnccms.c index 4c9dcb46..b2bc03a6 100644 --- a/src/host/layer23/src/mobile/mnccms.c +++ b/src/host/layer23/src/mobile/mnccms.c @@ -207,6 +207,15 @@ static void display_useruser(struct osmocom_ms *ms, struct gsm_mncc *data) { const char *text; + /* if a status message is received with cause 43 */ + if ((data->fields & MNCC_F_CAUSE) && data->cause.value == 43) { + vty_notify(ms, "Network say that user-user message cannot be " + "delivered\n"); + LOGP(DMNCC, LOGL_INFO, "Network say that user-user message " + "cannot be delivered\n"); + return; + } + /* if not user-user message is present, we are done */ if (!(data->fields & MNCC_F_USERUSER)) return; @@ -475,6 +484,7 @@ int mncc_recv_mobile(struct osmocom_ms *ms, int msg_type, void *arg) vty_notify(ms, "Call is answered\n"); LOGP(DMNCC, LOGL_INFO, "Call is answered\n"); display_useruser(ms, data); + call->connect = 1; break; case MNCC_SETUP_IND: vty_notify(ms, NULL); -- cgit v1.2.3