From 6dd859f5de0b5660b057cd3f1cdfc8b95344e559 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Fri, 16 Jul 2004 02:14:04 +0000 Subject: [PATCH] Don't process subchannels by default git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@128 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q921.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/q921.c b/q921.c index 03e2f30..4c046ac 100755 --- a/q921.c +++ b/q921.c @@ -913,11 +913,14 @@ static pri_event *__q921_receive(struct pri *pri, q921_h *h, int len) /* Check for SAPIs we don't yet handle */ if ((h->h.sapi != pri->sapi) || (h->h.tei != pri->tei)) { +#ifdef PROCESS_SUBCHANNELS /* If it's not us, try any subchannels we have */ if (pri->subchannel) return q921_receive(pri->subchannel, h, len + 2); - else + else +#endif return NULL; + } ev = __q921_receive_qualified(pri, h, len); reschedule_t203(pri);