diff options
author | Matthew Fredrickson <creslin@digium.com> | 2006-11-17 01:05:28 +0000 |
---|---|---|
committer | Matthew Fredrickson <creslin@digium.com> | 2006-11-17 01:05:28 +0000 |
commit | 57d4919427ee61c32d598f4ec14b799917c716d0 (patch) | |
tree | 00b6bd1311c4e9ee1e7b2eddba58622c3c1516bb | |
parent | 938c4bdc298ae5548720958ed1e60a115bb029a8 (diff) |
Make sure we choose the last channel as the dchannel if it's not E1 (for BRI). (#8077) Thanks Tzafrir.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47784 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | channels/chan_zap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index d5f96e57a..fcfe76781 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -7320,8 +7320,9 @@ static int pri_resolve_span(int *span, int channel, int offset, struct zt_spanin } else { if (si->totalchans == 31) { /* if it's an E1 */ pris[*span].dchannels[0] = 16 + offset; - } else { - pris[*span].dchannels[0] = 24 + offset; + } else { /* T1 or BRI: D Channel is the last Channel */ + pris[*span].dchannels[0] = + si->totalchans + offset; } pris[*span].dchanavail[0] |= DCHAN_PROVISIONED; pris[*span].offset = offset; |