[Asterisk-cvs] asterisk/channels chan_zap.c,1.238,1.239
jim at lists.digium.com
jim at lists.digium.com
Mon May 31 11:48:20 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv8955/channels
Modified Files:
chan_zap.c
Log Message:
Complete re-vamp of Radio Repeater application (app_rpt) and VERY minor changes in chan_zap (to allow pseudo-channels to work properly (finally!)) and in dsp.c to allow for super-relaxed DTMF decoding which radio systems need to function properly.
Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.238
retrieving revision 1.239
diff -u -d -r1.238 -r1.239
--- chan_zap.c 28 May 2004 02:02:33 -0000 1.238
+++ chan_zap.c 31 May 2004 16:04:10 -0000 1.239
@@ -5676,11 +5676,15 @@
p.debouncetime = cur_debounce;
}
- res = ioctl(tmp->subs[SUB_REAL].zfd, ZT_SET_PARAMS, &p);
- if (res < 0) {
- ast_log(LOG_ERROR, "Unable to set parameters\n");
- free(tmp);
- return NULL;
+ /* dont set parms on a pseudo-channel */
+ if (tmp->subs[SUB_REAL].zfd >= 0)
+ {
+ res = ioctl(tmp->subs[SUB_REAL].zfd, ZT_SET_PARAMS, &p);
+ if (res < 0) {
+ ast_log(LOG_ERROR, "Unable to set parameters\n");
+ free(tmp);
+ return NULL;
+ }
}
#if 1
if (!here && (tmp->subs[SUB_REAL].zfd > -1)) {
More information about the svn-commits
mailing list