summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-01-09 06:35:54 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2013-01-14 09:42:45 +0100
commite627eee596b6d54d6e2c5393b88a4f0dea364175 (patch)
treebd17f26b7b3fee8d4cac400451e6d4b1755d6c4e
parent47f05aefdf4eac7332aa4aa32238225e1c98aedb (diff)
mobile: Fixed CLIR invokation / suppression
If "clip" is given at vty, CLIR must be suppressed, which results in presentation of caller ID digits, even if suppressed by network. If "clir" is given at vty, CLIR must be invoked, which results in restriction of caller ID digits, even if not suppressed by network. Note: This only work for outgoing caller ID. Incomming caller ID restriction cannot be suppressed.
-rw-r--r--src/host/layer23/src/mobile/mnccms.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/host/layer23/src/mobile/mnccms.c b/src/host/layer23/src/mobile/mnccms.c
index e0e9b26..4c9dcb4 100644
--- a/src/host/layer23/src/mobile/mnccms.c
+++ b/src/host/layer23/src/mobile/mnccms.c
@@ -677,10 +677,12 @@ int mncc_call(struct osmocom_ms *ms, char *number)
/* bearer capability (mandatory) */
mncc_set_bearer(ms, -1, &setup);
+
+ /* CLIR */
if (ms->settings.clir)
- setup.clir.sup = 1;
- else if (ms->settings.clip)
setup.clir.inv = 1;
+ else if (ms->settings.clip)
+ setup.clir.sup = 1;
/* CC capabilities (optional) */
if (ms->settings.cc_dtmf) {