cfg.t.cfg.s.inLCe.sapId = signal_data->dchan_id;
- cfg.t.cfg.s.inLCe.lnkUpDwnInd = TRUE;
+ if (span->trunk_type == FTDM_TRUNK_BRI_PTMP) {
+ /* Stack will send Restart CFM's each time link is established (TEI negotiated),
+ and we do not want thi s event */
+ cfg.t.cfg.s.inLCe.lnkUpDwnInd = FALSE;
+ } else {
+ cfg.t.cfg.s.inLCe.lnkUpDwnInd = TRUE;
+ }
- cfg.t.cfg.s.inLCe.tCon.enb = TRUE;
- cfg.t.cfg.s.inLCe.tCon.val = 35;
+ if (FTDM_SPAN_IS_BRI(span)) {
+ /* tCon Timer causes unwanted hangup on BRI links
+ where the Q.921 link goes into disconnected
+ state when idle. */
+
+ cfg.t.cfg.s.inLCe.tCon.enb = FALSE;
+ cfg.t.cfg.s.inLCe.tCon.val = 0;
+ } else {
+ cfg.t.cfg.s.inLCe.tCon.enb = TRUE;
+ cfg.t.cfg.s.inLCe.tCon.val = 35;
+ }
+
cfg.t.cfg.s.inLCe.tDisc.enb = TRUE;
cfg.t.cfg.s.inLCe.tDisc.val = 35;
cfg.t.cfg.s.inLCe.t314.enb = FALSE; /* if segmentation enabled, set to TRUE */