]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Inband notifies always succeed (bug #2420)
authorMark Spencer <markster@digium.com>
Tue, 14 Sep 2004 12:36:14 +0000 (12:36 +0000)
committerMark Spencer <markster@digium.com>
Tue, 14 Sep 2004 12:36:14 +0000 (12:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3775 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 02bed999225867daad8bc6d0677a22849797fd8b..e2d5a81f1be7e3e3d94d94898a76564de4d4d985 100755 (executable)
@@ -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);