Allow GSM340_PLAN_UNKNOWN on MNCC originated leg.
Allows dialing of numbers with GSM340_PLAN_UNKNOWN, for example a number beginning with '*' Change-Id: I8d71cac5b169e3b19675b9b9626e6993f3acd979
This commit is contained in:
parent
5ff4c53fad
commit
8c0f6d2f75
10
src/mncc.c
10
src/mncc.c
|
@ -397,14 +397,16 @@ static void check_rtp_create(struct mncc_connection *conn, const char *buf, int
|
||||||
|
|
||||||
static int continue_setup(struct mncc_connection *conn, const struct gsm_mncc *mncc)
|
static int continue_setup(struct mncc_connection *conn, const struct gsm_mncc *mncc)
|
||||||
{
|
{
|
||||||
if (mncc->called.plan != GSM340_PLAN_ISDN) {
|
switch (mncc->called.plan) {
|
||||||
|
case GSM340_PLAN_UNKNOWN:
|
||||||
|
case GSM340_PLAN_ISDN:
|
||||||
|
return 1;
|
||||||
|
default:
|
||||||
LOGP(DMNCC, LOGL_ERROR,
|
LOGP(DMNCC, LOGL_ERROR,
|
||||||
"leg(%u) has non(%d) ISDN dial plan. not supported.\n",
|
"leg(%u) has unsupported(%d) dial plan.\n",
|
||||||
mncc->callref, mncc->called.plan);
|
mncc->callref, mncc->called.plan);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check + Process MNCC_SETUP_IND (MO call) */
|
/* Check + Process MNCC_SETUP_IND (MO call) */
|
||||||
|
|
Loading…
Reference in New Issue