diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-29 16:10:00 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-29 16:10:00 +0000 |
commit | 3aeb282e9027f70292189ce44551fa0257e537ff (patch) | |
tree | 14d481a9f92352ef10255a070d92772bef038b35 /channels/chan_zap.c | |
parent | b7125e767987f0c10e11b25e2f9ddb064e44800a (diff) |
Allow zap groups above 30 to work properly.
(closes issue #11590)
Reported by: tbsky
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@100835 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r-- | channels/chan_zap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index d5b3117d7..5b755ea07 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -7572,7 +7572,7 @@ static struct zt_pvt *mkintf(int channel, struct zt_chan_conf conf, struct zt_pr return tmp; } -static inline int available(struct zt_pvt *p, int channelmatch, int groupmatch, int *busy, int *channelmatched, int *groupmatched) +static inline int available(struct zt_pvt *p, int channelmatch, ast_group_t groupmatch, int *busy, int *channelmatched, int *groupmatched) { int res; ZT_PARAMS par; @@ -7740,7 +7740,7 @@ static int pri_find_empty_chan(struct zt_pri *pri, int backwards) static struct ast_channel *zt_request(const char *type, int format, void *data, int *cause) { - int groupmatch = 0; + ast_group_t groupmatch = 0; int channelmatch = -1; int roundrobin = 0; int callwait = 0; @@ -7783,7 +7783,7 @@ static struct ast_channel *zt_request(const char *type, int format, void *data, ast_log(LOG_WARNING, "Unable to determine group for data %s\n", (char *)data); return NULL; } - groupmatch = 1 << x; + groupmatch = ((ast_group_t) 1 << x); if (toupper(dest[0]) == 'G') { if (dest[0] == 'G') { backwards = 1; |