A loop over all drivers obviously should use ISDN_MAX_DRIVERS, not ISDN_MAX_CHANNELS.
Attach a file by drag & drop or click to upload