bsc: Blind fix to deal with phones sending a dialplan of 0

This commit is contained in:
Holger Hans Peter Freyther 2011-09-30 16:24:27 +02:00
parent c7db4dce4a
commit 0b19d55dd6
1 changed files with 2 additions and 2 deletions

View File

@ -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