You might need to edit the code of chan_zap.c You need two things to fix:
outgoing calls and incoming calls. Outgoing you should be able to find
pri_call call and do chan-1 for chans16. For incoming calls you need to
find the handling of PRI_EVENT_RING or something like that and do chan+1
for
Hi
We interfaced our ASCOTEL PBX to Asterisk. by EuroISDN PRI , DSS1
It works fine on channels 1- 15, but on 17-31 the miststood each other.
Asterisk speaks in Timeslots, the PBX in B-channels
The signalling is ok, but the bridging is shifted. The first incoming connection is bridged to nirwana