summaryrefslogtreecommitdiff
path: root/zaptel.c
diff options
context:
space:
mode:
Diffstat (limited to 'zaptel.c')
-rwxr-xr-xzaptel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/zaptel.c b/zaptel.c
index 714fc66..da898c6 100755
--- a/zaptel.c
+++ b/zaptel.c
@@ -5139,6 +5139,11 @@ static void __zt_hooksig_pvt(struct zt_chan *chan, zt_rxsig_t rxsig)
if ((chan->flags & ZT_FLAG_SIGFREEZE)) return;
chan->rxhooksig = rxsig;
+#ifdef RINGBEGIN
+ if ((chan->sig & __ZT_SIG_FXS) && (rxsig == ZT_RXSIG_RING) &&
+ (!chan->ringdebtimer))
+ __qevent(chan,ZT_EVENT_RINGBEGIN);
+#endif
switch(chan->sig) {
case ZT_SIG_EM: /* E and M */
case ZT_SIG_EM_E1: