From e925205c28b4aad00bc692b331b88648795085ef Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 14 Feb 2011 16:43:35 +0100 Subject: DAHDI: Automatically switch signalling slots to HDLC + FCS mode This will now make signalling slots work anywhere, even if /etc/dahdi/system.conf states the timeslot is a bchan. --- openbsc/src/input/dahdi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'openbsc') diff --git a/openbsc/src/input/dahdi.c b/openbsc/src/input/dahdi.c index e5d41e0fd..2fc99f58e 100644 --- a/openbsc/src/input/dahdi.c +++ b/openbsc/src/input/dahdi.c @@ -403,8 +403,13 @@ void dahdi_set_bufinfo(int fd, int as_sigchan) fprintf(stderr, "Error setting bufinfo\n"); exit(-1); } + } else { + int one = 1; + ioctl(fd, DAHDI_HDLCFCSMODE, &one); + /* we cannot reliably check for the ioctl return value here + * as this command will fail if the slot _already_ was a + * signalling slot before :( */ } - } static int dahdi_e1_setup(struct e1inp_line *line) -- cgit v1.2.3