diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-09-30 16:24:27 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-01-07 15:50:14 +0100 |
commit | 0b19d55dd676a9ed8c9aa17019e813dbeb63df2e (patch) | |
tree | dbd82890c580d292e68fc07dc0ed4747a4c3cb34 /openbsc | |
parent | c7db4dce4a766176ac64528340975d6a28491afb (diff) |
bsc: Blind fix to deal with phones sending a dialplan of 0
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/osmo-bsc/osmo_bsc_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_api.c b/openbsc/src/osmo-bsc/osmo_bsc_api.c index 4973846e2..87d3f6e61 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_api.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_api.c @@ -204,10 +204,10 @@ static int handle_cc_setup(struct gsm_subscriber_connection *conn, gsm48_decode_called(&called, TLVP_VAL(&tp, GSM48_IE_CALLED_BCD) - 1); - if (called.plan != 1) + if (called.plan != 1 && called.plan != 0) return 0; - if (called.type == 1) { + if (called.plan == 1 && called.type == 1) { _dest_nr[0] = _dest_nr[1] = '0'; memcpy(_dest_nr + 2, called.number, sizeof(called.number)); } else |