ftmod_libpri: clarify why we enable facility conditionally

Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
This commit is contained in:
Stefan Knoblich 2010-11-08 00:57:50 +01:00
parent 9e40c23cdb
commit 0a0e79e1fe
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}