aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-26 22:38:02 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-26 22:38:02 +0000
commit254edbf05505f6e6b7a4c8657c95dfcbbe55b7df (patch)
tree00b9bc0536b07e64bc2719aba279db60435c197f /channels/chan_zap.c
parent596c9a8c6a51153a8199e6f96b346a541194c638 (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: http://svn.digium.com/svn/asterisk/trunk@94818 f38db490-d61c-443f-a65b-d21fe96a405b
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 */