Summary:ASTERISK-02539: Discontiguous descending Zap channel group fails to use all members
Reporter:Andrew Lindh (andrew)Labels:
Date Opened:2004-10-05 19:31:49Date Closed:2008-01-15 15:09:48.000-0600
Versions:Frequency of
Environment:Attachments:( 0) zapdiff.txt
Description:Due to a failure of an FXO port on the TDM400P card I had to remove a line from my channel configuration. This has now created a discontiguous set of channels in ONE group over two context settings. The important things are, ONE group used, the missing channel is NOT in the middle of a configured range in one of the contexts, and the channels are assigned in decending order. If the missing channel is inside the range the problem does not exist. This only happens over two (or more) configured contexts. When the DIAL command is used, assending usage (options g and r) does not have an issue. When decending usage is called for when dialing the from the Zap channels (options G and R) it will only use the highest channels in the group and not use lower ones in the same group from another context.

The order in the confiuration file is IMPORTANT. If I use the below exanmple it fails (higher channels assigned first). If the contexts are reverse it works correctly (lower channnels assigned first).

I'm not sure where bug exists, but I'm reporting it now and will try to look into the source later. It's not a major problem. Workaround seems to be assign the channels in ascending order.


Part of the config from zapata.conf that has the problem:


Comments:By: Mark Spencer (markster) 2004-10-06 19:43:47

This should fix it.

By: Mark Spencer (markster) 2004-10-08 14:19:44

Assumed it fixed it.

By: Russell Bryant (russell) 2004-10-08 20:43:53

fixed in the 1.0 branch

By: Digium Subversion (svnbot) 2008-01-15 15:09:22.000-0600

Repository: asterisk
Revision: 3926

U   trunk/channels/chan_zap.c

r3926 | markster | 2008-01-15 15:09:22 -0600 (Tue, 15 Jan 2008) | 2 lines

Be sure prev struct is built properly (bug ASTERISK-2539)



By: Digium Subversion (svnbot) 2008-01-15 15:09:48.000-0600

Repository: asterisk
Revision: 3958

U   branches/v1-0/channels/chan_zap.c

r3958 | russell | 2008-01-15 15:09:48 -0600 (Tue, 15 Jan 2008) | 2 lines

Discontiguous descending Zap channel group fails to use all members (bug ASTERISK-2539)