diff options
author | Jim Dixon <telesistant@hotmail.com> | 2004-05-31 16:04:10 +0000 |
---|---|---|
committer | Jim Dixon <telesistant@hotmail.com> | 2004-05-31 16:04:10 +0000 |
commit | 8968d5097601da69040b9966f985cf9dfaa1fe91 (patch) | |
tree | 2f913772b83fde4f1af5052378bc1d04e8f7c381 /channels | |
parent | b0f9569b5c4007721c216a8080b4dce113ad1fd6 (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-x | channels/chan_zap.c | 14 |
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)) { |