aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-14 12:36:14 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-14 12:36:14 +0000
commit6d451c90e3e1d692a408a0861b39690994540e34 (patch)
tree21addb1a78902b1257eb62880866e4b490a4f197
parentb5cbc90b527a61223e177312f508ae8781bd1014 (diff)
Inband notifies always succeed (bug #2420)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3775 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xchannels/chan_zap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 02bed9992..e2d5a81f1 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -4183,6 +4183,7 @@ static int zt_indicate(struct ast_channel *chan, int condition)
if (p->priindication_oob && p->sig == SIG_PRI) {
chan->hangupcause = AST_CAUSE_USER_BUSY;
chan->_softhangup |= AST_SOFTHANGUP_DEV;
+ res = 0;
} else
#endif
res = tone_zone_play_tone(p->subs[index].zfd, ZT_TONE_BUSY);
@@ -4252,6 +4253,7 @@ static int zt_indicate(struct ast_channel *chan, int condition)
if (p->priindication_oob && p->sig == SIG_PRI) {
chan->hangupcause = AST_CAUSE_SWITCH_CONGESTION;
chan->_softhangup |= AST_SOFTHANGUP_DEV;
+ res = 0;
} else
#endif
res = tone_zone_play_tone(p->subs[index].zfd, ZT_TONE_CONGESTION);