[Asterisk-cvs] asterisk/channels chan_zap.c,1.99,1.100
martinp at lists.digium.com
martinp at lists.digium.com
Wed Sep 17 17:22:08 CDT 2003
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv7958/channels
Modified Files:
chan_zap.c
Log Message:
Allow detection of callerid on FXO with distinctive ring
Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -d -r1.99 -r1.100
--- chan_zap.c 13 Sep 2003 23:57:48 -0000 1.99
+++ chan_zap.c 17 Sep 2003 22:23:17 -0000 1.100
@@ -4294,7 +4294,9 @@
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) {
More information about the svn-commits
mailing list