summaryrefslogtreecommitdiff
path: root/xpp/card_fxo.c
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-09-04 22:44:10 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-09-04 22:44:10 +0000
commit80e84d41daf7ea1a88765b3621a653769fb843ac (patch)
tree5b55d66f9d39b34f06ad21dc445722bf5ab0c235 /xpp/card_fxo.c
parent909d1e663eab279fa8736a0d14fda263b66e9556 (diff)
Send ring signalling to zaptel directly from card_fxo.c:
no need to xpp_ring_generate() git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1388 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'xpp/card_fxo.c')
-rw-r--r--xpp/card_fxo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xpp/card_fxo.c b/xpp/card_fxo.c
index 56ed05a..0a7da3d 100644
--- a/xpp/card_fxo.c
+++ b/xpp/card_fxo.c
@@ -204,11 +204,13 @@ static void mark_ring(xpd_t *xpd, lineno_t pos, bool on)
DBG("%s/%s/%d: START\n", xpd->xbus->busname, xpd->xpdname, pos);
xpd->ringing[pos] = 1;
MARK_BLINK(priv, pos, LED_GREEN, LED_BLINK);
+ update_zap_ring(xpd, pos, 1);
} else if(!on && xpd->ringing[pos]) {
DBG("%s/%s/%d: STOP\n", xpd->xbus->busname, xpd->xpdname, pos);
xpd->ringing[pos] = 0;
if(IS_BLINKING(priv, pos, LED_GREEN))
MARK_BLINK(priv, pos, LED_GREEN, 0);
+ update_zap_ring(xpd, pos, 0);
}
}