diff options
author | jim <jim@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-05-31 16:04:10 +0000 |
---|---|---|
committer | jim <jim@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-05-31 16:04:10 +0000 |
commit | f48d4f750d021765b4d6b1b68108a36b82898238 (patch) | |
tree | 2f913772b83fde4f1af5052378bc1d04e8f7c381 /channels | |
parent | f91947fbe68b00682c8465a6b7671ed7a7ca776d (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: http://svn.digium.com/svn/asterisk/trunk@3117 f38db490-d61c-443f-a65b-d21fe96a405b
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)) { |