From e627eee596b6d54d6e2c5393b88a4f0dea364175 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Wed, 9 Jan 2013 06:35:54 +0100 Subject: 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. --- src/host/layer23/src/mobile/mnccms.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/host/layer23/src/mobile/mnccms.c b/src/host/layer23/src/mobile/mnccms.c index e0e9b26c..4c9dcb46 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) { -- cgit v1.2.3