summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorJim Dixon <telesistant@hotmail.com>2004-05-31 16:04:10 +0000
committerJim Dixon <telesistant@hotmail.com>2004-05-31 16:04:10 +0000
commit8968d5097601da69040b9966f985cf9dfaa1fe91 (patch)
tree2f913772b83fde4f1af5052378bc1d04e8f7c381 /channels
parentb0f9569b5c4007721c216a8080b4dce113ad1fd6 (diff)
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.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3117 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_zap.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 79584d236..956c39b93 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -5676,11 +5676,15 @@ static struct zt_pvt *mkintf(int channel, int signalling, int radio)
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)) {