diff options
author | Keith Whyte <keith@rhizomatica.org> | 2018-11-10 23:49:18 +0100 |
---|---|---|
committer | Keith Whyte <keith@rhizomatica.org> | 2018-11-12 17:07:06 +0100 |
commit | 8c0f6d2f7564638f9ffc051182d6f4d9dcc14f89 (patch) | |
tree | 9435e7df1f72c35b8d3af101a812b9185fa388b5 | |
parent | 5ff4c53fad728bf32cdff7ac0cbe1cc170c6a92a (diff) |
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
-rw-r--r-- | src/mncc.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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) { - 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, - "leg(%u) has non(%d) ISDN dial plan. not supported.\n", + "leg(%u) has unsupported(%d) dial plan.\n", mncc->callref, mncc->called.plan); return 0; } - - return 1; } /* Check + Process MNCC_SETUP_IND (MO call) */ |