From 0a0e79e1fe75307956f4410ab6c61205c0649e28 Mon Sep 17 00:00:00 2001 From: Stefan Knoblich Date: Mon, 8 Nov 2010 00:57:50 +0100 Subject: [PATCH] ftmod_libpri: clarify why we enable facility conditionally Signed-off-by: Stefan Knoblich --- libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c b/libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c index 65148f393e..b714b3569a 100644 --- a/libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c +++ b/libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c @@ -1327,7 +1327,10 @@ static void *ftdm_libpri_run(ftdm_thread_t *me, void *obj) } #ifdef HAVE_LIBPRI_AOC - /* enable FACILITY on trunk, if needed */ + /* + * Only enable facility on trunk if really required, + * this may help avoid problems on troublesome lines. + */ if (isdn_data->opts & FTMOD_LIBPRI_OPT_FACILITY_AOC) { pri_facility_enable(isdn_data->spri.pri); }