diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-09-30 16:24:27 +0200 |
---|---|---|
committer | Daniel Willmann <daniel@totalueberwachung.de> | 2011-11-04 12:27:13 +0100 |
commit | 7fd370a129f6912c2c19e369777220c63b72a011 (patch) | |
tree | 206715f7281097939e2dbd7bf579deaeb9700245 | |
parent | f739d4ea39f0f970a76007e8a8159b88a7622ecd (diff) |
bsc: Blind fix to deal with phones sending a dialplan of 0
-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 71f1abfc2..1e4bb32ca 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_api.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_api.c @@ -205,10 +205,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 |