ISDN and HDLC

Hi,

I updated asterisk from 1.4.2 to 1.4.18.1 and got a problem.
The HDLC mode of ISDN don’t work any more. As I figured out, the cause of this lies in the “handle_event” function in “channels/misdn/isdn_lib.c”.
Up to 1.4.11 the function “setup_bc(bc)” is only called for EVENT_SETUP_ACKNOWLEDGE. From 1.4.12 on it is also called for EVENT_SETUP.
The result is a too early call of setup_bc. Even before the configuration is loaded. So the HDLC mode can’t be enabled for the channel.
After changing this part of the function back it works again.
I wonder if this is a bug or if there is an other way to enable the HDLC mode properly.

Regards,
Sascha