summaryrefslogtreecommitdiff
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2007-12-26 22:38:02 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2007-12-26 22:38:02 +0000
commitc3fc2a76f5440a0194beb1d2e2f415a5be4a5963 (patch)
tree00b9bc0536b07e64bc2719aba279db60435c197f /channels/chan_zap.c
parentfa928c14c7268d185b34a2b6e60347baa05701a9 (diff)
Allow more spans than 32. Also, rearrange compiler flags so the most often
used flags appear closer to the top. Reported by: tzafrir Patch by: tzafrir,tilghman (Closes issue #11528) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94818 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 0e01298a5..76ece3874 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -205,7 +205,11 @@ static const char config[] = "zapata.conf";
#define SIG_GR303FXOKS (0x0100000 | ZT_SIG_FXOKS)
#define SIG_GR303FXSKS (0x0100000 | ZT_SIG_FXSKS)
+#ifdef LOTS_OF_SPANS
+#define NUM_SPANS ZT_MAX_SPANS
+#else
#define NUM_SPANS 32
+#endif
#define NUM_DCHANS 4 /*!< No more than 4 d-channels */
#define MAX_CHANNELS 672 /*!< No more than a DS3 per trunk group */