summaryrefslogtreecommitdiff
path: root/xpp
diff options
context:
space:
mode:
Diffstat (limited to 'xpp')
-rw-r--r--xpp/card_fxs.c8
-rw-r--r--xpp/init_data_3_20.cmd8
2 files changed, 6 insertions, 10 deletions
diff --git a/xpp/card_fxs.c b/xpp/card_fxs.c
index 41b503e..1718849 100644
--- a/xpp/card_fxs.c
+++ b/xpp/card_fxs.c
@@ -769,13 +769,6 @@ HANDLER_DEF(FXS, SIG_CHANGED)
NOTICE("%s: %s/%s is not registered. Skipping.\n", __FUNCTION__, xbus->busname, xpd->xpdname);
return -ENODEV;
}
-#if 0
- Is this needed?
- for_each_line(xpd, i) {
- if(IS_SET(sig_toggles, i))
- do_chan_power(xpd->xbus, xpd, BIT(i), 0); // Power down (prevent overheating!!!)
- }
-#endif
for_each_line(xpd, i) {
if(IS_SET(xpd->digital_outputs, i) || IS_SET(xpd->digital_inputs, i))
continue;
@@ -783,6 +776,7 @@ HANDLER_DEF(FXS, SIG_CHANGED)
struct zt_chan *chan = &xpd->span.chans[i];
xpd->ringing[i] = 0; // No more ringing...
+ do_chan_power(xpd->xbus, xpd, BIT(i), 0); // When not ringing, VBAT is always Low
MARK_BLINK(priv,i,LED_GREEN,0);
if(IS_SET(sig_status, i)) {
DBG("OFFHOOK: channo=%d\n", chan->channo);
diff --git a/xpp/init_data_3_20.cmd b/xpp/init_data_3_20.cmd
index 203a39d..5470357 100644
--- a/xpp/init_data_3_20.cmd
+++ b/xpp/init_data_3_20.cmd
@@ -104,8 +104,9 @@ FF 00 00 00 WD 12 FF
FF 00 00 00 WD 13 FF
FF 00 00 00 WD 14 FF
-; Automatic/Manual Control: defaults - Cancel Power Alarm
-FF 00 00 00 WD 43 1E
+; Automatic/Manual Control:
+; Manual BATL/BATH select. NOTE: bit 08 switches VBAT to Low AND to High!
+FF 00 00 00 WD 43 16
FF 00 00 00 WD 4A 31
FF 00 00 00 WD 4B 10
@@ -124,7 +125,8 @@ FF 00 00 00 WD 45 0A
FF 00 00 00 WD 46 0B
; Loop Current Limit
-FF 00 00 00 WD 47 07
+; 23 milliampere for line current
+FF 00 00 00 WD 47 01
; Setting of SLICs offsets