diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-04-11 03:47:19 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-04-11 03:47:19 +0000 |
commit | 415a1bce6f732fefa9dce98dcf452765fee754b3 (patch) | |
tree | 7fd03846ab46b3bf080178cebde8c977ec68b174 /channels | |
parent | 5bf9299f5b76e04633a58ce5eeff9488bf124bfd (diff) |
Only do call progress on outgoing calls
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@819 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_zap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index f115e9096..1ac3cf8a0 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -3416,7 +3416,7 @@ static struct ast_channel *zt_new(struct zt_pvt *i, int state, int startpbx, int if (i->busydetect && CANBUSYDETECT(i)) { features |= DSP_FEATURE_BUSY_DETECT; } - if (i->callprogress && CANPROGRESSDETECT(i)) { + if (i->callprogress && CANPROGRESSDETECT(i) && i->outgoing) { features |= DSP_FEATURE_CALL_PROGRESS; } features |= DSP_FEATURE_DTMF_DETECT; @@ -5057,6 +5057,7 @@ static struct ast_channel *zt_request(char *type, int format, void *data) break; } } + p->outgoing = 1; tmp = zt_new(p, AST_STATE_RESERVED, 0, p->owner ? SUB_CALLWAIT : SUB_REAL, 0); /* Make special notes */ if (res > 1) { |