aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-09-17 22:23:17 +0000
committermartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-09-17 22:23:17 +0000
commit85d82586fbd13817d3fbb512e53e938cca53ddf4 (patch)
tree938526e9d88df7cdce2d4b8a6c5a4dbd5f9fff98
parente31c0e05b7e8b240f057ee3c52bb71cd6a7ea9a1 (diff)
Allow detection of callerid on FXO with distinctive ring
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1525 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xchannels/chan_zap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 002a7d833..1824fad9b 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -4294,7 +4294,9 @@ static void *ss_thread(void *data)
res = zt_get_event(p->subs[index].zfd);
ast_log(LOG_NOTICE, "Got event %d (%s)...\n", res, event2str(res));
res = 0;
- break;
+ /* Let us detect callerid when the telco uses distinctive ring */
+ if (p->ringt < RINGT/2)
+ break;
} else if (i & ZT_IOMUX_READ) {
res = read(p->subs[index].zfd, buf, sizeof(buf));
if (res < 0) {