diff --git a/q931.c b/q931.c index 8d06310..8524655 100644 --- a/q931.c +++ b/q931.c @@ -4802,10 +4802,15 @@ int q931_notify_redirection(struct pri *ctrl, q931_call *call, int notify, const int q931_notify(struct pri *ctrl, q931_call *c, int channel, int info) { - if ((ctrl->switchtype == PRI_SWITCH_EUROISDN_T1) || (ctrl->switchtype != PRI_SWITCH_EUROISDN_E1)) { + switch (ctrl->switchtype) { + case PRI_SWITCH_EUROISDN_T1: + case PRI_SWITCH_EUROISDN_E1: + break; + default: if ((info > 0x2) || (info < 0x00)) { return 0; } + break; } if (info >= 0) {